aports/main/oidentd/oidentd.initd
2020-02-18 23:25:22 -03:00

21 lines
394 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
: ${cfgfile:=/etc/oidentd.conf}
command=/usr/sbin/oidentd
command_args="-u oidentd -g oidentd $opts"
command_args_foreground="--foreground"
required_files="$cfgfile"
extra_started_commands="reload"
depend() {
need net
after firewall
}
reload() {
ebegin "Reloading $RC_SVCNAME configuration"
$supervisor $RC_SVCNAME --signal HUP
eend $?
}