From b9aaa3bdbe2b9af2e3526818714291a57d11b5b0 Mon Sep 17 00:00:00 2001 From: Jeremy Chadwick Date: Tue, 20 Feb 2007 22:36:40 +0000 Subject: 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 Approved by: philip --- mail/postfix/files/postfix.sh.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mail/postfix/files') diff --git a/mail/postfix/files/postfix.sh.in b/mail/postfix/files/postfix.sh.in index f2326b56c11b..7f7e7eaf46f9 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" -- cgit v1.2.3