3dd0f65
[Unit]
3dd0f65
Description=NSD DNS Server
3dd0f65
After=syslog.target network.target
c376124
After=nsd-keygen.service
c376124
Wants=nsd-keygen.service
3dd0f65
3dd0f65
[Service]
4101ba1
Type=simple
3dd0f65
PIDFile=/var/run/nsd/nsd.pid
c376124
EnvironmentFile=-/etc/sysconfig/nsd
c376124
ExecStart=/usr/sbin/nsd -d -c /etc/nsd/nsd.conf $NSD_EXTRA_OPTS
c376124
ExecReload=/bin/kill -HUP $MAINPID
4101ba1
# notify blocks on misconfigurations - but does show it very loudly
Fabio Alessandro Locati 05a4b5a
ExecReload=/usr/sbin/nsd-control -c /etc/nsd/nsd.conf notify
3dd0f65
ExecStopPost=/bin/rm -f /var/lib/nsd/xfrd.state
c376124
KillMode=mixed
c376124
PrivateTmp=true
3dd0f65
3dd0f65
[Install]
3dd0f65
WantedBy=multi-user.target