Red Hat Bugzilla – Bug 86142
status() in /etc/rc.d/init.d/functions does not distinguish daemons properly
Last modified: 2014-03-16 22:35:08 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.2; MultiZilla v1.1.32
Description of problem:
status seems to call pidof daemon_file_name instead of pidof
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. /usr/cyrus/bin/master is running
2. /usr/libexec/postfix/master is NOT running
3. Try /etc/init.d/postfix status
Actual Results: postfix is reported as running!
Expected Results: postfix should be reported as not running, because
/usr/cyrus/bin/master is not /usr/libexec/postfix/master
I suggest to save the pid to a file when the daemon is started and then do
something like ps|grep pid to check if the exact same instance is still running.
I believe this is fixed in current initscripts, such as those shipped with Red
Hat Linux 9.