summaryrefslogtreecommitdiff
path: root/mail/exim/files/exim.sh.sample
blob: de6fd4dbcdffaca96c0e73e9c8d21d21d7676fa5 (plain) (blame)
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
#!/bin/sh
#
# This script can be used as an alternative method of starting up Exim.
# Most installations should simply edit /etc/mail/mailer.conf and then
# allow the system startup scripts to start Exim as sendmail.
#
# However, if Exim is linked against 3rd-party libraries that are not in
# the standard library search path (such as MySQL), then it should be
# started here, after said library support is enabled through its own
# startup script.
#
# $Id$
#
args='-bd -q30m'

case "$1" in
start)
        [ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' e
xim'
        ;;
stop)
        kill `cat /var/run/exim.pid` && echo -n ' exim'
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        exit 64
        ;;
esac

exit 0