fd4e3518e9
Bump PORTREVISION PR: 91721 Submitted by: NIIMI Satoshi <sa2c@sa2c.net>
42 lines
762 B
Bash
42 lines
762 B
Bash
#!/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}"
|
|
postfix_pidfile="${postfix_pidfile:-/var/spool/postfix/pid/master.pid}"
|
|
postfix_procname="${postfix_procname:-%%PREFIX%%/libexec/postfix/master}"
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="postfix"
|
|
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
|
|
}
|
|
|
|
postfix_stop() {
|
|
%%PREFIX%%/sbin/postfix stop
|
|
}
|
|
|
|
load_rc_config ${name}
|
|
run_rc_command "$1"
|