Red Hat Bugzilla – Bug 74890
daemon does not start when pid file mentions existing PID of other daemon
Last modified: 2014-03-16 22:31:20 EDT
We have some boxes deployed into environments where monkeys sometimes unplug
them. When the machine comes back up, sometimes apache doesn't start up because
the PID mentioned in its PID file refers to a live process from some other daemon.
I'm hoping that the functions (such as daemon) can be modified to avoid
triggering this error by checking the /proc/$PID/cmdline to see if it matches
the cmdname expected for that daemon.
If you were willing to require perl, you could extract the command name with the
following code fragment:
cmdname=`perl -e '$/ = "\0"; $_ = <STDIN>; chomp; s-.*/--; print "$_\n"' <
Closing bugs on older, no longer supported, releases. Apologies for any lack of
If this persists on a current release, such as Fedora Core 4, please open a new bug.