diff options
Diffstat (limited to 'testing/kea/kea.initd.in')
-rw-r--r-- | testing/kea/kea.initd.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/kea/kea.initd.in b/testing/kea/kea.initd.in index b07314de3c..7d2b39617a 100644 --- a/testing/kea/kea.initd.in +++ b/testing/kea/kea.initd.in @@ -1,6 +1,8 @@ #!/sbin/openrc-run : ${cfgfile:="/etc/kea/@@NAME@@.conf"} +: ${command_user:="kea"} +: ${wait:=100} name="@@NAME@@" extra_commands="checkconfig" @@ -10,6 +12,7 @@ command="/usr/sbin/@@NAME@@" command_args="-c $cfgfile" command_background="yes" pidfile="/run/$RC_SVCNAME.pid" +start_stop_daemon_args="--wait $wait $start_stop_daemon_args" depend() { need net @@ -17,6 +20,8 @@ depend() { } start_pre() { + checkpath -d -m 0750 -o $command_user /run/kea /run/kea/lock + checkconfig } |