Bug 1280437

Summary: Specify PIDFile in service file
Product: [Fedora] Fedora Reporter: Quentin Armitage <quentin>
Component: keepalivedAssignee: Ryan O'Hara <rohara>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: athmanem, bperkins, matthias, rohara, rolf
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-03 17:27:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Quentin Armitage 2015-11-11 17:57:13 UTC
Description of problem:
keepalived doesn't reliably shutdown

Version-Release number of selected component (if applicable):
keepalived-1.2.29-1

How reproducible:
Sometimes

Steps to Reproduce:
1. systemctl stop keepalived
2. ps -ef | grep keepalived - sometimes shows keepalived still running
3.

Actual results:
keepalived still running

Expected results:
keepalived no longer running

Additional info:
The man page for systemd.service recommends the use of PIDFile= should be set for services with Type=forking.
Adding PIDFile=/var/run/keepalived.pid to the service file appears to resolve the problem.

Comment 1 Ryan O'Hara 2016-01-23 08:01:10 UTC
I could not reproduce this, but I've added PIDFile to the systemd unit file since it is recommended. Thanks for noticing this!

Comment 2 Ryan O'Hara 2016-06-03 13:45:30 UTC
*** Bug 1334094 has been marked as a duplicate of this bug. ***