diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2009-04-30 14:58:03 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-05-26 08:50:02 -0400 |
commit | 3624d766f6098b998a6b60f89285f18faaf8dc61 (patch) | |
tree | 7d735dcd58352d682cca4eeb3d9cc29eb99fdeac | |
parent | 9df9359312ebb29e0a9b5c6db0cb0a195194f49e (diff) | |
download | sssd-3624d766f6098b998a6b60f89285f18faaf8dc61.tar.gz sssd-3624d766f6098b998a6b60f89285f18faaf8dc61.tar.bz2 sssd-3624d766f6098b998a6b60f89285f18faaf8dc61.zip |
Fix initscript return codes
-rw-r--r-- | server/sysv/sssd | 12 |
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 } |