path: root/extras
diff options
authorNiels de Vos <>2013-05-23 11:25:27 +0200
committerVijay Bellur <>2013-05-25 11:41:29 -0700
commit689618e2fc0cecbfa06ef02b6c259a1a8502971f (patch)
tree62e3cc1a27b93951181bfd6d295e88b3090e20d0 /extras
parent2a2244972082c026061a08c76d03ec2f19b0d438 (diff)
extras: prevent "glusterd dead but subsys locked"
Commit b5bf14a6 added support for a file under /var/lock/subsys, Hoewever, killproc does remove the $PIDFILE which cases subsequent checks on its existence to fail. When glusterd was stopped successfully, the $PIDFILE has been removed already, there is no need to try to remove is again. Upon executing '/sbin/service glusterd status', the message 'glusterd dead but subsys locked' would be returned because the file under /var/lock/subsys was not removed. Bug: 960476 Change-Id: I781fe463e3c5472e42d668155cee4f63d349a568 Reported-by: Satheesaran Sundaramoorthi <> Signed-off-by: Niels de Vos <> Reviewed-on: Reviewed-by: Jeff Darcy <> Tested-by: Gluster Build System <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to 'extras')
1 files changed, 0 insertions, 1 deletions
diff --git a/extras/init.d/ b/extras/init.d/
index 7db7e1be7..e320708ae 100755
--- a/extras/init.d/
+++ b/extras/init.d/
@@ -72,7 +72,6 @@ stop()
echo -n $"Stopping $BASE:"
if pidofproc -p $PIDFILE $GLUSTERD_BIN &> /dev/null; then
killproc -p $PIDFILE $BASE
- [ -w $PIDFILE ] && rm -f $PIDFILE
killproc $BASE