Bug 1334094 - keepalived does not stop after systemctl stop
Summary: keepalived does not stop after systemctl stop
Keywords:
Status: CLOSED DUPLICATE of bug 1280437
Alias: None
Product: Fedora
Classification: Fedora
Component: keepalived
Version: 23
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ryan O'Hara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-08 10:22 UTC by Rolf Fokkens
Modified: 2016-06-03 13:45 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-06-03 13:45:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
This service file seems to result in a reliable systemctl stop keepalived (320 bytes, text/plain)
2016-05-08 10:24 UTC, Rolf Fokkens
no flags Details

Description Rolf Fokkens 2016-05-08 10:22:30 UTC
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.

Comment 1 Rolf Fokkens 2016-05-08 10:24:04 UTC
Created attachment 1155033 [details]
This service file seems to result in a reliable systemctl stop keepalived

Comment 2 mailinglists 2016-05-15 12:21:11 UTC
We also hit this bug.

Comment 3 Ryan O'Hara 2016-05-23 14:04:53 UTC
You hit this bug even with the fix from bz#1280437?

Comment 4 Ryan O'Hara 2016-05-23 14:31:31 UTC
(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.

Comment 5 Rolf Fokkens 2016-05-23 16:29:14 UTC
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.

Comment 6 Ryan O'Hara 2016-06-03 13:45:30 UTC

*** This bug has been marked as a duplicate of bug 1280437 ***


Note You need to log in before you can comment on or make changes to this bug.