2006-01-12 17:23:08 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2007-03-07 19:29:41 +01:00
|
|
|
# PROVIDE: postfix mail
|
2006-01-12 17:23:08 +01:00
|
|
|
# REQUIRE: %%REQUIRE%%
|
|
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
2006-01-16 22:49:06 +01:00
|
|
|
# Add the following lines to /etc/rc.conf to enable postfix:
|
|
|
|
# postfix_enable (bool): Set it to "YES" to enable postfix.
|
|
|
|
# Default is "NO".
|
|
|
|
# postfix_pidfile (path): Set full path to master.pid.
|
|
|
|
# Default is "/var/spool/postfix/pid/master.pid".
|
|
|
|
# postfix_procname (command): Set command that start master. Used to verify if
|
|
|
|
# postfix is running.
|
|
|
|
# Default is "%%PREFIX%%/libexec/postfix/master".
|
2006-01-12 17:23:08 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
|
|
|
|
name="postfix"
|
2006-02-15 04:04:58 +01:00
|
|
|
rcvar=${name}_enable
|
2006-01-16 22:49:06 +01:00
|
|
|
|
2006-01-12 17:23:08 +01:00
|
|
|
start_cmd=${name}_start
|
|
|
|
stop_cmd=${name}_stop
|
2006-01-12 21:38:27 +01:00
|
|
|
extra_commands="reload"
|
2006-01-16 22:49:06 +01:00
|
|
|
|
2006-01-12 21:38:27 +01:00
|
|
|
pidfile=${postfix_pidfile}
|
|
|
|
procname=${postfix_procname}
|
|
|
|
|
2006-01-12 17:23:08 +01:00
|
|
|
postfix_start() {
|
|
|
|
%%PREFIX%%/sbin/postfix start
|
|
|
|
}
|
|
|
|
|
|
|
|
postfix_stop() {
|
|
|
|
%%PREFIX%%/sbin/postfix stop
|
|
|
|
}
|
|
|
|
|
2006-02-15 04:04:58 +01:00
|
|
|
load_rc_config $name
|
|
|
|
|
|
|
|
: ${postfix_enable="NO"}
|
|
|
|
: ${postfix_pidfile="/var/spool/postfix/pid/master.pid"}
|
|
|
|
: ${postfix_procname="%%PREFIX%%/libexec/postfix/master"}
|
|
|
|
|
2006-01-12 17:23:08 +01:00
|
|
|
run_rc_command "$1"
|