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 &
33 if ps -C cyrus-master >/dev/null 2>&1; then
35 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cyrus-imapd
41 # show "%s service is already running." <service>
42 msg_already_running cyrus-imapd
48 if [ -f /var/lock/subsys/cyrus-imapd ]; then
49 msg_stopping cyrus-imapd
52 rm -f /var/lock/subsys/cyrus-imapd
54 msg_not_running cyrus-imapd
67 msg_usage "$0 {start|stop|status|restart}"
73 # This must be last line !
74 # vi:syntax=sh:tw=78:ts=8:sw=4