]> git.ipfire.org Git - thirdparty/pdns.git/blame - pdns/pdns.service.in
Merge pull request #7628 from tcely/patch-3
[thirdparty/pdns.git] / pdns / pdns.service.in
CommitLineData
e0f824e9
PD
1[Unit]
2Description=PowerDNS Authoritative Server
adcdfb5f 3Documentation=man:pdns_server(1) man:pdns_control(1)
6988eae9 4Documentation=https://doc.powerdns.com
bf194c7c 5Wants=network-online.target
e861c4d8 6After=network-online.target mysqld.service postgresql.service slapd.service mariadb.service
e0f824e9
PD
7
8[Service]
b18fa400 9ExecStart=@sbindir@/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no
8f4f86b1 10Type=notify
77738678 11Restart=on-failure
d327ddf1
KM
12RestartSec=1
13StartLimitInterval=0
8f4f86b1
RG
14
15# Sandboxing
970f340d 16CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_CHOWN CAP_SYS_CHROOT
8f4f86b1
RG
17LockPersonality=true
18ProtectControlGroups=true
19ProtectHome=true
20ProtectKernelModules=true
21ProtectKernelTunables=true
c50b1f54
PL
22# ProtectSystem=full will disallow write access to /etc and /usr, possibly
23# not being able to write slaved-zones into sqlite3 or zonefiles.
90544d2f 24ProtectSystem=full
90544d2f 25RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
8f4f86b1
RG
26RestrictNamespaces=true
27RestrictRealtime=true
a3dfb540
RG
28SystemCallArchitectures=native
29SystemCallFilter=~ @clock @debug @module @mount @raw-io @reboot @swap @cpu-emulation @obsolete
e0f824e9
PD
30
31[Install]
32WantedBy=multi-user.target