Red Hat Bugzilla – Bug 1280437
Specify PIDFile in service file
Last modified: 2016-06-03 13:27:17 EDT
Description of problem:
keepalived doesn't reliably shutdown
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. systemctl stop keepalived
2. ps -ef | grep keepalived - sometimes shows keepalived still running
keepalived still running
keepalived no longer running
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.
I could not reproduce this, but I've added PIDFile to the systemd unit file since it is recommended. Thanks for noticing this!
*** Bug 1334094 has been marked as a duplicate of this bug. ***