mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Upstream is alive and active, has 1-st class FreeBSD support. They had switched to mbedtls3 since version 2.4.0. Using their ready-to-use port with minor changes: * Fix files/kadnode.in mode (0755 -> 0644) * Improve pkg-descr * Some linting PR: 283954 Reviewed by: diizzy Approved by: moritzwarning@web.de (maintainer)
23 lines
436 B
Bash
23 lines
436 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: kadnode
|
|
# REQUIRE: SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=kadnode
|
|
rcvar=kadnode_enable
|
|
|
|
pidfile="/var/run/kadnode.pid"
|
|
required_files="%%PREFIX%%/etc/kadnode/kadnode.conf"
|
|
configfile="%%PREFIX%%/etc/kadnode/kadnode.conf"
|
|
command="%%PREFIX%%/bin/kadnode"
|
|
|
|
command_args="--config $configfile --pidfile $pidfile --daemon"
|
|
|
|
load_rc_config $name
|
|
: ${kadnode_enable:=yes}
|
|
run_rc_command "$1"
|