Bug#889144: stricter PIDfile handling breaks several daemons
Sven Hartge
sven at svenhartge.de
Sun Feb 4 20:26:06 GMT 2018
On Sun, 4 Feb 2018 15:41:37 +0000 Simon Kelley <simon at thekelleys.org.uk>
wrote:
> With my dnsmasq maintainer hat on, the current arrangement looks like this.
>
> 1) /run/dnsmasq is a directory owned by dnsmasq:nogroup
> 2) /run/dnsmasq/dnsmasq.pid gets written by dnsmasq before it drops
> root, so is root:root
> 3) The reason /run/dnsmasq is owned by dnsmasq is so that dnsmasq can
> unlink the pidfile at shutdown, after it has dropped root and is running
> as 'dnsmasq'
Does dnsmasq need a PIDfile when running under systemd? Can't it just
not double fork, stay in the foreground using a Type=simple systemd unit?
That way the whole problem could be avoided all together.
Grüße,
Sven.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180204/9820a954/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list