Your message dated Tue, 12 Nov 2013 17:18:23 +0000
with message-id <[email protected]>
and subject line Bug#729166: fixed in nsd 4.0.0-3
has caused the Debian Bug report #729166,
regarding [nsd] systemd ExecStartPre is wrong, PID is unwritable
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
729166: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=729166
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nsd
Version: 4.0.0-2
Severity: important
--- Please enter the report below this line. ---
Hi,
The systemd service file has some ExecStartPre to create PID and
database directory.
Those directives are wrong in two ways. First, every systemd directive
should have a full path to the executable, e.g. /bin/mkdir and not just
mkdir.
Second, this command is NOT executed in a shell environment, so shell
replacement such as $(command) don't work. The right way to achieve this
is to call /bin/sh -c '$(command)'.
Attached is the fixed unit file.
By the way, "Type=simple" can be removed, since its the default, but I
let it in the file, I don't want to mess with multiple fixes.
Adrien
--- System information. ---
Architecture: i386
Kernel: Linux 3.11-1-686-pae
Debian Release: jessie/sid
500 unstable ftp.fr.debian.org
1 experimental ftp.fr.debian.org
--- Package information. ---
Depends (Version) | Installed
======================-+-===========
nsd3 |
Package's Recommends field is empty.
Package's Suggests field is empty.
[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
--- End Message ---
--- Begin Message ---
Source: nsd
Source-Version: 4.0.0-3
We believe that the bug you reported is fixed in the latest version of
nsd, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ondřej Surý <[email protected]> (supplier of updated nsd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 12 Nov 2013 17:33:38 +0100
Source: nsd
Binary: nsd nsd3
Architecture: source amd64 all
Version: 4.0.0-3
Distribution: unstable
Urgency: low
Maintainer: Ondřej Surý <[email protected]>
Changed-By: Ondřej Surý <[email protected]>
Description:
nsd - authoritative domain name server
nsd3 - authoritative domain name server [transitional package]
Closes: 729120 729166
Changes:
nsd (4.0.0-3) unstable; urgency=low
.
* Add updated and fixed systemd service file (Closes: #729166)
* Move /etc/nsd3/nsd.conf to /etc/nsd/nsd.conf manually since
dpkg-maintscript-helper checks for ownership of moved config file
(Closes: #729120)
* Remove the old nsd.conf.example configfile on upgrade to nsd3 (4.0.0)
and also remove /etc/init.d/nsd3 and /etc/cron.d/nsd3
* Cleanup nsd3 statoverrides in nsd.postinst
* Don't remove system user in postrm
* Link nsd-control-setup manpage to nsd-control
* Add a hack^Hsolution to prevent nsd user removal when nsd3 was
removed, but not purged, nsd installed and nsd3 purged after that
(very rare case, but can happen)
Checksums-Sha1:
fb8ce53e23f3991e0c4dfff3b7af6aa7cda1e355 1264 nsd_4.0.0-3.dsc
b85b6c03f8fd08c6aa8ba975767ae9e8b4853e70 13412 nsd_4.0.0-3.debian.tar.gz
9dbacf5e4414106eafc1f5b7279115e4d7f84485 697142 nsd_4.0.0-3_amd64.deb
0427823ab4b07ca9247babc8bf3043142d782887 1526 nsd3_4.0.0-3_all.deb
Checksums-Sha256:
a40ae40f2ae739690b017e97f6904006bf30224f2b5039bf3a8df50576825d42 1264
nsd_4.0.0-3.dsc
c73f9ab290335af93f19428c2bdc7aaca8f227f5c4ba5d0467848c349f534ae2 13412
nsd_4.0.0-3.debian.tar.gz
b26634437c182e1eddb0c961616b2fd0c629b2656bab8acd4288e58ffe7b2131 697142
nsd_4.0.0-3_amd64.deb
f8196c54aec56e85a97ea84f58aa88a64a59d8faf5bb2bf550479f095f1fd84b 1526
nsd3_4.0.0-3_all.deb
Files:
c3323f0105a72bb1f0b918deb8bb3fab 1264 net optional nsd_4.0.0-3.dsc
07bf6a030cc9ee5bebe3e43f57f1c6cb 13412 net optional nsd_4.0.0-3.debian.tar.gz
f7bac8743e02f6c20ea3c7169bd0d3c8 697142 net optional nsd_4.0.0-3_amd64.deb
d0b2b32c0d5a3e3194f041fcbe42d803 1526 oldlibs extra nsd3_4.0.0-3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlKCXp8ACgkQ9OZqfMIN8nOX0wCfXiAgyFHy4gfxnQYtOavB+9XK
dRwAn0YgKLmUdz4f0/wMJs4MpMzMPiu4
=P9Je
-----END PGP SIGNATURE-----
--- End Message ---