aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix23/files
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-01-12 16:23:59 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-01-12 16:23:59 +0000
commit62d43491182a787005f97cb0b450582260384426 (patch)
treebe2c5ac6785a22fbd3a7f2813d86755ff8a7e757 /mail/postfix23/files
parentdde49994076b8e3442893b2f7c22dee391246cb1 (diff)
downloadports-62d43491182a787005f97cb0b450582260384426.tar.gz
ports-62d43491182a787005f97cb0b450582260384426.zip
Notes
Diffstat (limited to 'mail/postfix23/files')
-rw-r--r--mail/postfix23/files/postfix.sh.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/mail/postfix23/files/postfix.sh.in b/mail/postfix23/files/postfix.sh.in
new file mode 100644
index 000000000000..8424abbe123b
--- /dev/null
+++ b/mail/postfix23/files/postfix.sh.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: postfix
+# REQUIRE: %%REQUIRE%%
+# KEYWORD: shutdown
+#
+# Define these postfix_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/postfix
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+postfix_enable="${postfix_enable-NO}"
+
+. %%RC_SUBR%%
+
+name="postfix"
+rcvar=`set_rcvar`
+
+start_cmd=${name}_start
+stop_cmd=${name}_stop
+
+postfix_start() {
+ %%PREFIX%%/sbin/postfix start
+}
+
+postfix_stop() {
+ %%PREFIX%%/sbin/postfix stop
+}
+
+load_rc_config ${name}
+run_rc_command "$1"