[nsd-users] Starting NSD on Debian with systemd fails

Stephane Bortzmeyer bortzmeyer at nic.fr
Sat Oct 18 14:57:46 UTC 2014


On Sat, Oct 18, 2014 at 10:51:09AM -0400,
 Paul Wouters <paul at nohats.ca> wrote 
 a message of 14 lines which said:

> Does the nsd.service file contain:

[Unit]
Description=Name Server Daemon
After=network.target

[Service]
Type=simple
Restart=always
Environment=CONFFILE=/etc/nsd/nsd.conf
ExecStartPre=/bin/sh -c '/bin/mkdir -p "$(dirname
"$(/usr/sbin/nsd-checkconf -o pidfile $CONFFILE)")"'
ExecStartPre=/bin/sh -c '/bin/chown "$(/usr/sbin/nsd-checkconf -o
username $CONFFILE)" "$(dirname "$(/usr/sbin/nsd-checkconf
 -o pidfile $CONFFILE)")"'
ExecStartPre=/bin/sh -c '/bin/mkdir -p "$(dirname
"$(/usr/sbin/nsd-checkconf -o database $CONFFILE)")"'
ExecStartPre=/bin/sh -c '/bin/chown "$(/usr/sbin/nsd-checkconf -o
username $CONFFILE)" "$(dirname "$(/usr/sbin/nsd-checkconf
 -o database $CONFFILE)")"'
ExecStart=/usr/sbin/nsd -d -c $CONFFILE
ExecReload=/usr/sbin/nsd-control reload

[Install]
WantedBy=multi-user.target



More information about the nsd-users mailing list