summaryrefslogtreecommitdiff
path: root/packages/redhat/sshd.init
diff options
context:
space:
mode:
Diffstat (limited to 'packages/redhat/sshd.init')
-rwxr-xr-xpackages/redhat/sshd.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/redhat/sshd.init b/packages/redhat/sshd.init
index a62866a2..cac91bb5 100755
--- a/packages/redhat/sshd.init
+++ b/packages/redhat/sshd.init
@@ -31,6 +31,7 @@ case "$1" in
RETVAL=$?
;;
esac
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd
fi
echo
;;
@@ -40,6 +41,7 @@ case "$1" in
killproc sshd
fi
echo
+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sshd
;;
restart)
$0 stop