A service has crashed on my server and when I do
service <service-name> status
I get dead but pid file exists, then if I try to stop the service I get
Shutdown <service-name>: bash: line 0: kill: (5018) - No such process
ERROR: could not stop <service-name>: <service-name> dead but pid file exists
Then I delete the files in /var/run//.pid and var/lock/subsys/ but it does not help. What should I do in order to really restart the service?
have you tried :
kill -9 pid
ps -eaf|grep pid
If pid gone now, try :
service service-name restart
(stop will fail, but should success when starting)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With