diff options
author | koitsu <koitsu@FreeBSD.org> | 2007-02-21 06:36:40 +0800 |
---|---|---|
committer | koitsu <koitsu@FreeBSD.org> | 2007-02-21 06:36:40 +0800 |
commit | 835afc19dccb4e8a73928f9761205feac4a5c36d (patch) | |
tree | d8a1ffcd671e6d95c31f8534d7c3fa95a7eaf7f4 /mail/postfix25 | |
parent | 841d4080cf646734231af6aa907096c2091e72ae (diff) | |
download | freebsd-ports-gnome-835afc19dccb4e8a73928f9761205feac4a5c36d.tar.gz freebsd-ports-gnome-835afc19dccb4e8a73928f9761205feac4a5c36d.tar.zst freebsd-ports-gnome-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/postfix25')
-rw-r--r-- | mail/postfix25/files/postfix.sh.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/postfix25/files/postfix.sh.in b/mail/postfix25/files/postfix.sh.in index f2326b56c11b..7f7e7eaf46f9 100644 --- a/mail/postfix25/files/postfix.sh.in +++ b/mail/postfix25/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" |