aboutsummaryrefslogtreecommitdiff
path: root/mail/dbmail-devel/files/dbmail-imapd.sh.in
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-18 16:04:16 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-18 16:04:16 +0000
commit05065d99c78a53f6ab97086574a01d75be79decc (patch)
tree2f9f09b2b30cc41ccd58808030a38660205a46fb /mail/dbmail-devel/files/dbmail-imapd.sh.in
parent679f73e91c22fe170f78e55bd8ed2adf7a40849c (diff)
downloadports-05065d99c78a53f6ab97086574a01d75be79decc.tar.gz
ports-05065d99c78a53f6ab97086574a01d75be79decc.zip
Notes
Diffstat (limited to 'mail/dbmail-devel/files/dbmail-imapd.sh.in')
-rw-r--r--mail/dbmail-devel/files/dbmail-imapd.sh.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/dbmail-devel/files/dbmail-imapd.sh.in b/mail/dbmail-devel/files/dbmail-imapd.sh.in
new file mode 100644
index 000000000000..82505e96d9b0
--- /dev/null
+++ b/mail/dbmail-devel/files/dbmail-imapd.sh.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dbmail-imapd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable dbmail-imapd:
+#
+#dbmail_imapd_enable="YES"
+#
+# See dbmail-imapd(8) for flags
+#
+
+. %%RC_SUBR%%
+
+name=dbmail_imapd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/dbmail-imapd
+pidfile=/var/run/dbmail-imapd.pid
+required_files=%%PREFIX%%/etc/dbmail.conf
+
+# read settings, set default values
+load_rc_config "$name"
+: ${dbmail_imapd_enable="NO"}
+: ${dbmail_imapd_flags=""}
+
+run_rc_command "$1"