2013-12-29 05:30:31 +01:00
|
|
|
[Unit]
|
|
|
|
Description=NSD DNS Server
|
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
|
|
[Service]
|
2021-10-12 21:53:30 +02:00
|
|
|
# added automatically, for details please see
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=true
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectHostname=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
# end of automatic additions
|
2013-12-29 05:30:31 +01:00
|
|
|
Type=simple
|
|
|
|
PIDFile=/run/nsd/nsd.pid
|
|
|
|
#EnvironmentFile=-/etc/sysconfig/nsd
|
|
|
|
#ExecStart=/usr/sbin/nsd -D -c /etc/nsd/nsd.conf $OTHER_NSD_OPTS
|
|
|
|
ExecStart=/usr/sbin/nsd -d -c /etc/nsd/nsd.conf
|
|
|
|
ExecStopPost=/bin/rm -f /var/lib/nsd/xfrd.state
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|