aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix22/files/postfix.sh.in
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-01-12 20:38:03 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-01-12 20:38:03 +0000
commitedc9f24ed24591c9300294c03aa33219d7d8d60e (patch)
tree5cc1738c98d405ac98277d0f6e9071d8d9683544 /mail/postfix22/files/postfix.sh.in
parent15e58934ab40bc60d62c2f83814b0a07c26ee54a (diff)
downloadports-edc9f24ed24591c9300294c03aa33219d7d8d60e.tar.gz
ports-edc9f24ed24591c9300294c03aa33219d7d8d60e.zip
Fix rc.d/postfix.sh restart adding pidfile and procname
Bump PORTREVISION PR: 91721 Submitted by: NIIMI Satoshi <sa2c@sa2c.net> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=153368
Diffstat (limited to 'mail/postfix22/files/postfix.sh.in')
-rw-r--r--mail/postfix22/files/postfix.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/postfix22/files/postfix.sh.in b/mail/postfix22/files/postfix.sh.in
index 8424abbe123b..6ef4b39c77e1 100644
--- a/mail/postfix22/files/postfix.sh.in
+++ b/mail/postfix22/files/postfix.sh.in
@@ -14,6 +14,8 @@
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
+postfix_pidfile="${postfix_pidfile:-/var/spool/postfix/pid/master.pid}"
+postfix_procname="${postfix_procname:-%%PREFIX%%/libexec/postfix/master}"
. %%RC_SUBR%%
@@ -23,6 +25,10 @@ rcvar=`set_rcvar`
start_cmd=${name}_start
stop_cmd=${name}_stop
+extra_commands="reload"
+pidfile=${postfix_pidfile}
+procname=${postfix_procname}
+
postfix_start() {
%%PREFIX%%/sbin/postfix start
}