Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: When doing "systemctl stop keepalived" there's a high probability that keepalived does not stop. This may relate to using vrrp_script. Version-Release number of selected component (if applicable): keepalived-1.2.19-2 How reproducible: 80-100% Steps to Reproduce: 1. systemctl start keepalived 2. systemctl stop keepalived 3. Notice it's still running Actual results: Running keepalived Expected results: Stopped keepalived Additional info: Bug #1280437 relates to the same issue, but suggests an other solution. The solution here just makes systemd the parent of keepalived process, instead of tracking via a PID file.
Created attachment 1155033 [details] This service file seems to result in a reliable systemctl stop keepalived
We also hit this bug.
You hit this bug even with the fix from bz#1280437?
(In reply to Rolf Fokkens from comment #0) > Description of problem: > When doing "systemctl stop keepalived" there's a high probability that > keepalived does not stop. This may relate to using vrrp_script. > > Version-Release number of selected component (if applicable): > keepalived-1.2.19-2 Please update keepalived. The latest version in Fedora 23 in 1.2.20-1. The addition of PIDFile to the systemd unit file appeared in 1.2.19-3.
The fix in bz#1280437 works as well. I found bz#1280437 after fixing it without the PID file, but I'm happy with bz#1280437 's solution as well. It feels though that having the process write a PID file which will be used by systemd is somewhat indirect if systemd can know the PID directly if it is a child process. But that may be only about aesthetics, not really important.
*** This bug has been marked as a duplicate of bug 1280437 ***