mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
net-dns/getdns: add systemd unit files
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
committed by
Anthony G. Basile
parent
20c784c211
commit
f3cafd190f
12
net-dns/getdns/files/stubby.systemd
Normal file
12
net-dns/getdns/files/stubby.systemd
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=stubby DNS resolver
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/run/stubby
|
||||
ExecStart=/usr/bin/stubby
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
User=stubby
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
2
net-dns/getdns/files/stubby.tmpfilesd
Normal file
2
net-dns/getdns/files/stubby.tmpfilesd
Normal file
@@ -0,0 +1,2 @@
|
||||
# tmpfiles.d (5) for use with stubby.service
|
||||
d /run/stubby 0750 root stubby - -
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit user fcaps
|
||||
inherit user fcaps systemd
|
||||
|
||||
DESCRIPTION="Modern asynchronous DNS API"
|
||||
HOMEPAGE="https://getdnsapi.net/"
|
||||
@@ -52,6 +52,8 @@ src_install() {
|
||||
if use stubby; then
|
||||
newinitd "${FILESDIR}"/stubby.initd stubby
|
||||
newconfd "${FILESDIR}"/stubby.confd stubby
|
||||
systemd_newunit "${FILESDIR}"/stubby.systemd stubby.service
|
||||
systemd_newtmpfilesd "${FILESDIR}"/stubby.tmpfilesd stubby.conf
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user