]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/cyrus-imapd
Enabled force setting system time on boot.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / cyrus-imapd
1 #!/bin/sh
2 # Begin $rc_base/init.d/cyrus-imapd
3
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
6
7 . /etc/sysconfig/rc
8 . $rc_functions
9
10 case "$1" in
11 start)
12 boot_mesg "Starting the Cyrus IMAP Server..."
13 /usr/lib/cyrus/master &
14 evaluate_retval
15 ;;
16
17 stop)
18 boot_mesg "Stopping the Cyrus IMAP Server..."
19 killproc /usr/lib/cyrus/master
20 ;;
21
22 restart)
23 $0 stop
24 sleep 1
25 $0 start
26 ;;
27
28 status)
29 statusproc /usr/lib/cyrus/master
30 ;;
31
32 *)
33 echo "Usage: $0 {start|stop|restart|status}"
34 exit 1
35 ;;
36 esac
37
38 # End $rc_base/init.d/cyrus-imapd