summaryrefslogtreecommitdiff
path: root/mail/postfix-current/files/postfix.sh.in
blob: 8424abbe123be6a1ee1e32d68f107cc6dc00c617 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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}"

. %%RC_SUBR%%

name="postfix"
rcvar=`set_rcvar`

start_cmd=${name}_start
stop_cmd=${name}_stop

postfix_start() {
	%%PREFIX%%/sbin/postfix start
}

postfix_stop() {
	%%PREFIX%%/sbin/postfix stop
}

load_rc_config ${name}
run_rc_command "$1"