aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exim/files/exim.sh
blob: 09e3e6ef9eb6a9f4667af5767f2a0faf5e57c1f5 (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
#!/bin/sh
#
# $Id$
#
# Note that 'pidfile' may need to be changed if 'args' is altered; see
# the description of the 'pid_file_path' Exim configuration option in
# the Exim Specification.
#
args='-bd -q30m'
pidfile='/var/run/exim.pid'

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

exit 0