diff options
Diffstat (limited to 'community/knot-resolver/kres-cache-gc.initd')
-rw-r--r-- | community/knot-resolver/kres-cache-gc.initd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/community/knot-resolver/kres-cache-gc.initd b/community/knot-resolver/kres-cache-gc.initd index c638960d071..3ccbadbb1d7 100644 --- a/community/knot-resolver/kres-cache-gc.initd +++ b/community/knot-resolver/kres-cache-gc.initd @@ -11,6 +11,13 @@ command="/usr/sbin/kres-cache-gc" command_background="yes" pidfile="/run/$RC_SVCNAME.pid" 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" + +depend() { + need localmount +} start_pre() { if [ -z "$cachedir" ] && [ -e /etc/conf.d/kresd ]; then |