diff options
Diffstat (limited to 'extras/init.d/glusterd-Redhat.in')
| -rwxr-xr-x | extras/init.d/glusterd-Redhat.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in index 7db7e1be701..94801fe31a5 100755 --- a/extras/init.d/glusterd-Redhat.in +++ b/extras/init.d/glusterd-Redhat.in @@ -11,8 +11,8 @@ # Required-Stop: $local_fs $network # Should-Start: # Should-Stop: -# Default-Start: -# Default-Stop: 0 1 2 3 4 5 6 +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: glusterfs server # Description: Clustered file-system server ### END INIT INFO @@ -72,11 +72,11 @@ stop() echo -n $"Stopping $BASE:" if pidofproc -p $PIDFILE $GLUSTERD_BIN &> /dev/null; then killproc -p $PIDFILE $BASE - [ -w $PIDFILE ] && rm -f $PIDFILE else killproc $BASE fi RETVAL=$? + echo [ $RETVAL -eq 0 ] && rm -f $LOCKFILE return $RETVAL } |
