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
30 # Check that networking is up.
31 if [ "${NETWORKING}" = "no" ]; then
32 echo "WARNING: Networking is down. Exim service can't be runed."
37 # See how we were called.
40 # Check if the service is already running?
41 if [ ! -f /var/lock/subsys/exim ]; then
43 daemon exim $([ "$DAEMON" = yes ] && echo -bd) \
44 $([ -n "$QUEUE" ] && echo -q$QUEUE)
46 echo "Exim already is running"
48 touch /var/lock/subsys/exim
52 show Shutting down exim:
54 rm -f /var/lock/subsys/exim
64 echo "Usage: $0 {start|stop|staus|restart|reload}"