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