3 # exim This shell script takes care of starting and stopping
6 # chkconfig: 2345 80 30
8 # description: Exim is a Mail Transport Agent, which is the program \
9 # that moves mail from one machine to another.
12 # config: /etc/exim.cf
13 # pidfile: /var/run/exim.pid
16 # Source function library
17 . /etc/rc.d/init.d/functions
20 . /etc/sysconfig/network
23 if [ -f /etc/sysconfig/hc-cron ]; then
24 . /etc/sysconfig/hc-cron
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/exim ]; then
37 daemon exim $([ "$DAEMON" = yes ] && echo -bd) \
38 $([ -n "$QUEUE" ] && echo -q$QUEUE)
40 echo "Exim already is running"
42 touch /var/lock/subsys/exim
46 show Shutting down exim:
48 rm -f /var/lock/subsys/exim
58 echo "Usage: $0 {start|stop|staus|restart|reload}"