i guess so and i am pretty sure i removed it because
problems with failing service starts and since named
works for many months with the systemd-unit below
on personal as also 4 production servers i can say
for sure that nobody needs this pid-files

they are mostly for old sysvinit-scripts because
they need to know which process to send the SIGTERM
by stop a service, nobody needs this in the systemd
wolrd because systemd knows the pid and for forked
services even the pid's of any sub-process

in case of forking prcoesses they may be the REASON
for troubles because the PID may change at startup

in my opinion any maintainer should look if he
is using pid-file directives

[root@srv-rhsoft:~]$ systemctl status named.service
named.service - DNS Server
          Loaded: loaded (/etc/systemd/system/named.service; enabled)
          Active: active (running) since Sat, 03 Nov 2012 22:06:11 +0100; 21h 
ago
        Main PID: 1548 (named)
          CGroup: name=systemd:/system/named.service
                  └ 1548 /usr/sbin/named -u named -t /var/named/chroot

Am 04.11.2012 19:44, schrieb Brown:
> Okay, So this is a package specific issue and both bind and ddclient need to 
> remove the PidFile directives in their systemd service configuration?
> 
> Thanks,
> - David Brown
> ________________________________________
> From: Reindl Harald [h.rei...@thelounge.net]
> Sent: Sunday, November 04, 2012 10:36 AM
> To: Development discussions related to Fedora
> Cc: Brown, David M JR
> Subject: Re: Fedora 18 Upgrade Experience
> 
> Am 04.11.2012 19:26, schrieb Brown:
>> And there's the creation of the pid file directories for both named and 
>> ddclient
>> that seem to disappear every time I reboot, also seems like a bug somewhere
> 
> man tmpfiles.d
> 
> BTW:
> all these packages should be fixed a long time ago
> nearly no service needs a pid-file, systemd knows the pid
> 
> if i have any problem with such services the first is to clone
> them under /etc/systemd/system and remove any pid-crap
> 
> so far this fixed every problem in this context
> ____________________________________
> 
> [root@srv-rhsoft:~]$ cat /etc/systemd/system/named.service
> [Unit]
> Description=DNS Server
> After=network.target
> 
> [Service]
> Type=forking
> ExecStart=/usr/sbin/named -u named -t /var/named/chroot
> ExecReload=/bin/kill -HUP $MAINPID
> ExecStop=/bin/kill -TERM $MAINPID
> PrivateTmp=true
> TimeoutSec=25
> Restart=always
> RestartSec=1
> 
> [Install]
> WantedBy=multi-user.target

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to