/[smeserver]/rpms/dovecot/sme7/dovecot.init
ViewVC logotype

Annotation of /rpms/dovecot/sme7/dovecot.init

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 15:07:20 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: dovecot-1_0-1_2_rc15_el4_sme, dovecot-1_0_7-2_el4_sme, HEAD
Import on branch sme7 of package dovecot-1.0-1.2.rc15.el4.sme.src.rpm

1 slords 1.1 #!/bin/bash
2     #
3     # /etc/rc.d/init.d/dovecot
4     #
5     # Starts the dovecot daemon
6     #
7     # chkconfig: - 65 35
8     # description: Dovecot Imap Server
9     # processname: dovecot
10     # Source function library.
11     . /etc/init.d/functions
12    
13     test -x /usr/sbin/dovecot || exit 0
14    
15     RETVAL=0
16     prog="Dovecot Imap"
17    
18     start() {
19     echo -n $"Starting $prog: "
20     daemon /usr/sbin/dovecot
21     RETVAL=$?
22     [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dovecot
23     echo
24     }
25    
26     stop() {
27     echo -n $"Stopping $prog: "
28     killproc /usr/sbin/dovecot
29     RETVAL=$?
30     [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dovecot
31     echo
32     }
33    
34     #
35     # See how we were called.
36     #
37     case "$1" in
38     start)
39     start
40     ;;
41     stop)
42     stop
43     ;;
44     reload|restart)
45     stop
46     start
47     RETVAL=$?
48     ;;
49     condrestart)
50     if [ -f /var/lock/subsys/dovecot ]; then
51     stop
52     start
53     fi
54     ;;
55     status)
56     status /usr/sbin/dovecot
57     RETVAL=$?
58     ;;
59     *)
60     echo $"Usage: $0 {condrestart|start|stop|restart|reload|status}"
61     exit 1
62     esac
63    
64     exit $RETVAL

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed