diff options
Diffstat (limited to 'net-dns/getdns/files')
-rw-r--r-- | net-dns/getdns/files/stubby.initd-r2 | 9 | ||||
-rw-r--r-- | net-dns/getdns/files/stubby.logrotate | 1 |
2 files changed, 3 insertions, 7 deletions
diff --git a/net-dns/getdns/files/stubby.initd-r2 b/net-dns/getdns/files/stubby.initd-r2 index 69e76c0acfdf..6af818c2db8a 100644 --- a/net-dns/getdns/files/stubby.initd-r2 +++ b/net-dns/getdns/files/stubby.initd-r2 @@ -5,7 +5,7 @@ stubby_opts="-C ${STUBBY_CONFIG_FILE:-/etc/stubby/stubby.yml} -v ${STUBBY_LOGLEVEL:-5}" command="capsh" command_args="--inh=cap_net_bind_service --user=stubby -- -c '/usr/bin/stubby -g ${stubby_opts} >>/var/log/stubby.log 2>&1'" -pidfile="/run/stubby.pid" +pidfile="/run/stubby/stubby.pid" name="DNS Privacy Daemon" depend() @@ -18,11 +18,6 @@ depend() start_pre() { - checkpath -f -m 0644 -o stubby:stubby /run/stubby.pid + checkpath -d -m 0755 -o stubby:stubby /run/stubby checkpath -f -m 0644 -o stubby:stubby /var/log/stubby.log } - -stop_post() -{ - [ -f /run/stubby.pid ] && rm /run/stubby.pid -} diff --git a/net-dns/getdns/files/stubby.logrotate b/net-dns/getdns/files/stubby.logrotate index 48058782594c..ca41d872cfd4 100644 --- a/net-dns/getdns/files/stubby.logrotate +++ b/net-dns/getdns/files/stubby.logrotate @@ -1,6 +1,7 @@ /var/log/stubby.log { rotate 4 compress + copytruncate size 200k noolddir missingok |