freebsd-ports/mail/exim-old/files/exim.sh
Sheldon Hearn 9f1ab5925c Cope with -CURRENT's new tri-state sendmail_enable rc.conf(5) variable
by using an rc.d script to launch Exim, as was done before I took over
this port.

This seems to be the most popular approach, and is arguably the
simplest.  Folks like me who attach some aesthetic value to using rc(8)
and mailer.conf(8) to launch Exim at startup time should know enough to
blow away the rc.d script and do things any way they please.

For now, use two versions of the POST-INSTALL-NOTES, the only
difference being that the one given to -CURRENT users suggests setting
sendmail_enable to 'NONE', while the one for -STABLE users suggests
'NO'.
2002-04-03 15:52:32 +00:00

27 lines
524 B
Bash

#!/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