All pastes #44458 Raw Edit

Someone

public text v1 · immutable
#44458 ·published 2006-03-04 16:45 UTC
rendered paste body
#!/bin/sh
#
# authdaemon        Courier-Authdaemon
#
# chkconfig: 345 75 25
# description: Courier-Authdaemon
# processname: authdaemond
# pidfile: /var/spool/authdaemon/pid

start () {
   echo -n "Starting authdaemond: "
   authdaemond start 2> /dev/null &&
   echo -e $RESULT_OK ||
   echo -e $RESULT_FAIL
}

stop () {
   echo -n "Stopping authdaemond: "
   authdaemond stop 2> /dev/null &&
   echo -e $RESULT_OK ||
   echo -e $RESULT_FAIL
}

restart () {
   $0 stop
   $0 start
}

. /lib/lsb/init-functions