1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/mail/postfix/files/postfix.sh.in
Marcus Alves Grando 0350c7361c * UPDATING
Add entry about OPTIONS and SPF patch in mail/postfix

* mail/Makefile

Add postfix22

* mail/postfix [1]

Update to 2.3.0
Use OPTIONS instead of scripts
Add message about unsupported POSTFIX_OPTIONS
Remove SPF patch since that's not apply clean
Update pkg-descr
Change rcNG to rc only
Update CONFLICTS

* mail/postfix-current

Now postfix-current are called postfix-current instead of postfix.
Update CONFLICTS
Bump PORTREVISION
Store OPTIONSFILE in another local to not conflict with mail/postfix
Change rcNG to rc only

* mail/postfix1

Update CONFLICTS

* mail/postfix21

Update CONFLICTS
Change rcNG to rc only

* mail/postfix22 [2]

Update CONFLICTS
Change rcNG to rc only

Approved by:	maintainer [1]
Repocopy by:	marcus [2]
2006-07-19 12:59:11 +00:00

46 lines
966 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: postfix
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# 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".
#
. %%RC_SUBR%%
name="postfix"
rcvar=${name}_enable
load_rc_config $name
: ${postfix_enable="NO"}
: ${postfix_pidfile="/var/spool/postfix/pid/master.pid"}
: ${postfix_procname="%%PREFIX%%/libexec/postfix/master"}
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
}
run_rc_command "$1"