From edcf0e373ffc76a0944497414caf82f1a21df1ff Mon Sep 17 00:00:00 2001 From: "Jan F. Chadima" Date: Thu, 24 Sep 2009 14:11:48 +0000 Subject: [PATCH] make the initscript according to the LSB --- saslauthd.init | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/saslauthd.init b/saslauthd.init index 3132027..6239554 100755 --- a/saslauthd.init +++ b/saslauthd.init @@ -38,7 +38,7 @@ lockfile=/var/lock/subsys/$prog start() { [ -x $path ] || exit 5 echo -n $"Starting $prog: " - daemon $path -m $SOCKETDIR -a $MECH $FLAGS + daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch $lockfile @@ -98,12 +98,7 @@ case "$1" in status) rh_status ;; - condrestart) - if [ -f /var/lock/subsys/$prog ]; then - restart - fi - ;; - try-restart) + condrestart|try-restart) rh_status_q || exit 0 restart ;;