1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#! /bin/sh
# /etc/init.d/exim
#
# Written by Miquel van Smoorenburg <miquels@drinkel.ow.org>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for exim by Tim Cutts <tjrc1@mole.bio.cam.ac.uk>
set -e
# Usually this is disabled and exim runs from /etc/inetd.conf
exit 0
DAEMON=/usr/sbin/exim
NAME=exim
test -x $DAEMON || exit 0
case "$1" in
start)
update-inetd --disable smtp
echo -n "Starting MTA: "
start-stop-daemon --start --exec $DAEMON -- -bd -q30m
echo "exim."
;;
stop)
echo -n "Stopping MTA: "
start-stop-daemon --stop --oknodo --exec $DAEMON
echo "exim."
;;
restart)
echo "Restarting MTA: "
start-stop-daemon --stop --oknodo --exec $DAEMON
start-stop-daemon --start --exec $DAEMON -- -bd -q30m
echo "exim."
;;
reload|force-reload)
echo "Reloading $NAME configuration files"
start-stop-daemon --stop --signal 1 --exec $DAEMON
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|reload}"
exit 1
;;
esac
exit 0
|