diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
commit | a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (patch) | |
tree | 852c90a4bf354c30ea66504f70bfab5401fba18d /net-dns/getdns/files/stubby.initd-r1 | |
parent | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (diff) |
gentoo resync : 28.04.2018
Diffstat (limited to 'net-dns/getdns/files/stubby.initd-r1')
-rwxr-xr-x | net-dns/getdns/files/stubby.initd-r1 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-dns/getdns/files/stubby.initd-r1 b/net-dns/getdns/files/stubby.initd-r1 new file mode 100755 index 000000000000..e6b799919e28 --- /dev/null +++ b/net-dns/getdns/files/stubby.initd-r1 @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +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="/var/run/stubby/stubby.pid" +name="DNS Privacy Daemon" + +depend() +{ + provide dns + need localmount net + after bootmisc + use logger +} + +start_pre() +{ + checkpath -d -m 1755 -o stubby:stubby /var/run/stubby + checkpath -f -m 0644 -o stubby:stubby /var/log/stubby.log +} |