Flipkart

Tuesday, July 2, 2013

lighhttpd dead but subsys locked

Recently I was assigned a work to run a .sh file from php script. This .sh file will execute some Linux commands to move the data from one server to another. After completion of moving part, need to restart the lighthttpd server to take all the changes updated.

This script is working perfectly when we ran from the command line but throwing error "lighhttpd dead but subsys locked" from php script. So I did debug and googled to find the problem and I found that issue with "Service restart" command.


At last I resolved the issue by changing from Service <service name> restart to Service <service name> stop and Service <service name> start individually

1 comment: