1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh args='-bd -q30m' case "$1" in start) [ -x /usr/local/sbin/exim ] && /usr/local/sbin/exim $args && echo -n ' exim' ;; stop) killall exim && echo -n ' exim' ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 64 ;; esac exit 0