Httpd dead but subsys locked

I recently encountered an issue with one of the production server running RHEL 4. All the httpd processes were alive and their was no issues with the web server, however when we ran the:

service httpd status

command, it says, "httpd dead but subsys locked."

Their were no files inside the /var/lock/subsys directory for httpd and also I deleted the /var/run/httpd.pid file. However, the issue still persists. Even, I rebooted the server in the hope that this will clear any lock files.

However, nothing happened.

A careful examination of httpd.conf file at /etc/httpd/conf/httpd.conf file referred the pid file directory to /var/www/run, however the corresponding entry in the /etc/init.d/httpd file referred to /var/run directory for pid file.

Changing the lockfile directory and the pid file directory to /var/www/lock/subsys and /var/www/run directory solved the issue.

Now, service httpd status/start/restart/stop does not complain about the subsys issue.

Comments

Popular posts from this blog

zpool and power path partial compatibility

Clariion storage processor IP address change

Move LVM from multiple local and iscsi disk to SAN