aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exim/files/exim.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/exim/files/exim.sh.in')
-rw-r--r--mail/exim/files/exim.sh.in63
1 files changed, 63 insertions, 0 deletions
diff --git a/mail/exim/files/exim.sh.in b/mail/exim/files/exim.sh.in
new file mode 100644
index 000000000000..4a1e0ea1a86d
--- /dev/null
+++ b/mail/exim/files/exim.sh.in
@@ -0,0 +1,63 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: mail
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+# we make mail start late, so that things like .forward's are not
+# processed until the system is fully operational
+
+#
+# Add the following lines to /etc/rc.conf to enable exim:
+#
+#exim_enable="YES"
+#
+# See exim(8) for flags
+#
+
+. %%RC_SUBR%%
+
+name=exim
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/exim
+pidfile=/var/run/exim.pid
+required_dirs=%%LOGDIR%%
+required_files=%%PREFIX%%/etc/exim/configure
+
+start_precmd=start_precmd
+stop_postcmd=stop_postcmd
+
+extra_commands="reload"
+
+start_precmd()
+{
+ case $sendmail_enable in
+ [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
+ warn "sendmail_enable should be set to NONE"
+ ;;
+ [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
+ case $sendmail_submit_enable in
+ [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
+ warn "sendmail_submit_enable should be set to NO"
+ ;;
+ esac
+ ;;
+ [Nn][Oo][Nn][Ee])
+ ;;
+ esac
+}
+
+stop_postcmd()
+{
+ rm -f $pidfile
+}
+
+# read settings, set default values
+load_rc_config $name
+: ${exim_enable="NO"}
+: ${exim_flags="-bd -q30m"}
+
+run_rc_command "$1"
span title='2007-03-14 03:13:51 +0800'>2007-03-142-3/+8 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-201-3/+3 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-132-4/+6 * Update to KDE 3.5.3lofi2006-06-062-11/+13 * Update to KDE 3.5.2lofi2006-03-312-64/+11 * Update to KDE 3.5.1.lofi2006-02-012-4/+19 * Update to KDE 3.5.0lofi2006-01-092-53/+7 * Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-051-2/+2 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-012-3/+2 * Update to KDE 3.4.1lofi2005-06-262-9/+33 * Update to KDE 3.4lofi2005-03-212-42/+65 * Add i18nized doc subdirs to kdehier and adjust i18n port plists accordingly.lofi2004-12-231-1/+0 * Fix kde3-i18n ports.lofi2004-12-161-2/+2 * Update to KDE 3.3.2lofi2004-12-142-3/+3 * Update to KDE 3.3.1lofi2004-11-081-2/+2 * Update to KDE 3.3lofi2004-08-313-8/+71 * Update to version 3.2.3lofi2004-06-101-2/+2