View | Details | Raw Unified | Return to bug 109137
Collapse All | Expand All

(-)files/postfix.sh.in (-2 / +5 lines)
Lines 14-19 Link Here
14
# postfix_procname (command):	Set command that start master. Used to verify if
14
# postfix_procname (command):	Set command that start master. Used to verify if
15
#				postfix is running.
15
#				postfix is running.
16
#				Default is "%%PREFIX%%/libexec/postfix/master".
16
#				Default is "%%PREFIX%%/libexec/postfix/master".
17
# postfix_flags (str):		Flags passed to postfix-script on start-up.
18
#				Default is "".
17
#
19
#
18
20
19
. %%RC_SUBR%%
21
. %%RC_SUBR%%
Lines 26-31 Link Here
26
: ${postfix_enable="NO"}
28
: ${postfix_enable="NO"}
27
: ${postfix_pidfile="/var/spool/postfix/pid/master.pid"}
29
: ${postfix_pidfile="/var/spool/postfix/pid/master.pid"}
28
: ${postfix_procname="%%PREFIX%%/libexec/postfix/master"}
30
: ${postfix_procname="%%PREFIX%%/libexec/postfix/master"}
31
: ${postfix_flags=""}
29
32
30
start_cmd=${name}_start
33
start_cmd=${name}_start
31
stop_cmd=${name}_stop
34
stop_cmd=${name}_stop
Lines 35-45 Link Here
35
procname=${postfix_procname}
38
procname=${postfix_procname}
36
39
37
postfix_start() {
40
postfix_start() {
38
	%%PREFIX%%/sbin/postfix start
41
	%%PREFIX%%/sbin/postfix ${postfix_flags} start
39
}
42
}
40
43
41
postfix_stop() {
44
postfix_stop() {
42
	%%PREFIX%%/sbin/postfix stop
45
	%%PREFIX%%/sbin/postfix ${postfix_flags} stop
43
}
46
}
44
47
45
run_rc_command "$1"
48
run_rc_command "$1"

Return to bug 109137