Red Hat Bugzilla – Bug 842309
quagga daemon pidfiles remain after daemons are stopped
Last modified: 2014-06-18 00:34:18 EDT
There are two possible approaches here, either I could patch all daemons in quagga not to use pidfiles at all. systemd will always know the main pid of the service. Although there might be scripts out there using those pidfile from whatever reasons. Second approach would be, adding ExecStopPost= action to unit files where we could call rm command on pidfile.
I would say that second option is easier to implement and more sensible choice considering backward compatibility.
systemd now removes pidfiles automatically when they are referenced in a service file. I will add PIDFile= option to all quagga service files.