aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix
diff options
context:
space:
mode:
authorkoitsu <koitsu@FreeBSD.org>2007-02-21 06:36:40 +0800
committerkoitsu <koitsu@FreeBSD.org>2007-02-21 06:36:40 +0800
commit835afc19dccb4e8a73928f9761205feac4a5c36d (patch)
treed8a1ffcd671e6d95c31f8534d7c3fa95a7eaf7f4 /mail/postfix
parent841d4080cf646734231af6aa907096c2091e72ae (diff)
downloadfreebsd-ports-graphics-835afc19dccb4e8a73928f9761205feac4a5c36d.tar.gz
freebsd-ports-graphics-835afc19dccb4e8a73928f9761205feac4a5c36d.tar.zst
freebsd-ports-graphics-835afc19dccb4e8a73928f9761205feac4a5c36d.zip
Addition of postfix_flags variable to rc.subr startup script.
This variable is passed to postfix-script on startup, allowing administrators to do things like postfix_flags="-c /my/place/postfix" (alternate location of main.cf and master.cf), or postfix_flags="-v" (for verbose logging). See postfix(1) manpage for flags. PR: ports/109137 Reviewed by: Vivek Khera <vivek@khera.org> Approved by: philip
Diffstat (limited to 'mail/postfix')
-rw-r--r--mail/postfix/files/postfix.sh.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/postfix/files/postfix.sh.in b/mail/postfix/files/postfix.sh.in
index f2326b56c11..7f7e7eaf46f 100644
--- a/mail/postfix/files/postfix.sh.in
+++ b/mail/postfix/files/postfix.sh.in
@@ -14,6 +14,8 @@
# postfix_procname (command): Set command that start master. Used to verify if
# postfix is running.
# Default is "%%PREFIX%%/libexec/postfix/master".
+# postfix_flags (str): Flags passed to postfix-script on startup.
+# Default is "".
#
. %%RC_SUBR%%
@@ -26,6 +28,7 @@ load_rc_config $name
: ${postfix_enable="NO"}
: ${postfix_pidfile="/var/spool/postfix/pid/master.pid"}
: ${postfix_procname="%%PREFIX%%/libexec/postfix/master"}
+: ${postfix_flags=""}
start_cmd=${name}_start
stop_cmd=${name}_stop
@@ -35,11 +38,11 @@ pidfile=${postfix_pidfile}
procname=${postfix_procname}
postfix_start() {
- %%PREFIX%%/sbin/postfix start
+ %%PREFIX%%/sbin/postfix ${postfix_flags} start
}
postfix_stop() {
- %%PREFIX%%/sbin/postfix stop
+ %%PREFIX%%/sbin/postfix ${postfix_flags} stop
}
run_rc_command "$1"