diff options
Diffstat (limited to 'community/knot-resolver/kresd.initd')
-rw-r--r-- | community/knot-resolver/kresd.initd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/community/knot-resolver/kresd.initd b/community/knot-resolver/kresd.initd index 42a82c54392..494eb066a3e 100644 --- a/community/knot-resolver/kresd.initd +++ b/community/knot-resolver/kresd.initd @@ -10,9 +10,14 @@ command="/usr/sbin/kresd" command_args="--noninteractive --config=$cfgfile $cachedir" command_background="yes" + pidfile="/run/$RC_SVCNAME.pid" directory="$cachedir" start_stop_daemon_args="--wait $wait" +# The leading space is to avoid fallback to $start_stop_daemon_args when this +# is empty (supervise-daemon doesn't support --wait). +supervise_daemon_args=" $supervise_daemon_args" + required_files="$cfgfile" # cap_net_bind_service - required to bind to well-known ports @@ -24,6 +29,7 @@ capabilities="^cap_net_bind_service,^cap_setpcap" depend() { need net before kres-cache-gc + provide dns } start_pre() { |