Bug 1280437 - Specify PIDFile in service file
Summary: Specify PIDFile in service file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: keepalived
Version: 22
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ryan O'Hara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1334094 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-11 17:57 UTC by Quentin Armitage
Modified: 2016-06-03 17:27 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-06-03 17:27:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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. ***


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