3 # cyrus-imapd cyrus-imapd IMAP & POP3 Server
7 # description: cyrus-imapd
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
15 # Check that networking is up.
16 if is_yes "${NETWORKING}"; then
17 if [ ! -f /var/lock/subsys/network ]; then
18 msg_network_down cyrus-imapd
26 # See how we were called.
29 # Check if the service is already running?
30 if [ ! -f /var/lock/subsys/cyrus-imapd ]; then
31 msg_starting cyrus-imapd
32 /usr/lib/cyrus/cyrus-master &
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cyrus-imapd
36 # show "%s service is already running." <service>
37 msg_already_running cyrus-imapd
43 if [ -f /var/lock/subsys/cyrus-imapd ]; then
44 msg_stopping cyrus-imapd
47 rm -f /var/lock/subsys/cyrus-imapd
49 msg_not_running cyrus-imapd
62 msg_usage "$0 {start|stop|status|restart}"
68 # This must be last line !
69 # vi:syntax=sh:tw=78:ts=8:sw=4