From 3624d766f6098b998a6b60f89285f18faaf8dc61 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 30 Apr 2009 14:58:03 +0200 Subject: Fix initscript return codes --- server/sysv/sssd | 12 ++++++------ 1 file 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 } -- cgit