summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sysv/sssd12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sysv/sssd b/server/sysv/sssd
index 00f81f56..13854016 100644
--- a/server/sysv/sssd
+++ b/server/sysv/sssd
@@ -40,22 +40,26 @@ start() {
echo -n $"Starting $prog: "
daemon $SSSD -D 2>/dev/null && success || failure
RETVAL=$?
- [ "$RETVAL" = 0 ] && touch $LOCK_FILE
echo
+ [ "$RETVAL" = 0 ] && touch $LOCK_FILE
+ return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc -p $PID_FILE $SSSD -TERM
RETVAL=$?
- [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
echo
+ [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
+ return $RETVAL
}
reload() {
echo -n $"Reloading $prog: "
killproc $SSSD -HUP
+ RETVAL=$?
echo
+ return $RETVAL
}
restart() {
@@ -63,10 +67,6 @@ restart() {
start
}
-reload() {
- restart
-}
-
force_reload() {
restart
}