5 # description: IMAP Auth Daemon
7 # Source function library
8 . /etc/rc.d/init.d/functions
11 . /etc/sysconfig/network
15 [ -f /etc/sysconfig/authdaemon ] && . /etc/sysconfig/authdaemon
17 # Check that networking is up.
18 if is_no "${NETWORKING}" ; then
19 msg_Network_Down "Courier IMAP - Authdaemon"
23 # See how we were called.
26 # Check if the service is already running?
27 if [ ! -f /var/lock/subsys/authdaemon ]; then
28 msg_starting "Courier IMAP - Authdaemon"
29 daemon /usr/lib/courier-imap/authlib/authdaemond.$METHOD start
31 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/authdaemon
33 msg_Already_Running "Courier IMAP - Authdaemon"
38 if [ -f /var/lock/subsys/authdaemon ]; then
39 msg_stopping "Courier IMAP - Authdaemon"
40 daemon /usr/lib/courier-imap/authlib/authdaemond.$METHOD stop
42 rm -f /var/lock/subsys/authdaemon
44 msg_not_running "Courier IMAP - Authdaemon"
53 status authdaemond.$METHOD
56 msg_Usage "$0 {start|stop|restart|reload|status}"