Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 369915 | Differences between
and this patch

Collapse All | Expand All

(-)postfix.rc6.2.5.old (-1 / +23 lines)
Lines 16-22 Link Here
16
	CONF_DIR="${CONF_DIR}.${CONF_OPT}"
16
	CONF_DIR="${CONF_DIR}.${CONF_OPT}"
17
fi
17
fi
18
18
19
opts="${opts} reload"
19
opts="${opts} reload abort flush"
20
21
description_reload="Re-read configuration files. Running processes terminate at their earliest convenience."
22
description_abort="Stop the Postfix mail system abruptly. Running processes are signaled to stop immediately."
23
description_flush="Force delivery: attempt to deliver every message in the deferred mail queue."
20
24
21
depend() {
25
depend() {
22
	use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd
26
	use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd
Lines 46-48 Link Here
46
	/usr/sbin/postfix -c ${CONF_DIR} reload >/dev/null 2>&1
50
	/usr/sbin/postfix -c ${CONF_DIR} reload >/dev/null 2>&1
47
	eend $?
51
	eend $?
48
}
52
}
53
54
abort() {
55
	ebegin "Aborting postfix (${CONF_DIR})"
56
57
	# zap!
58
	if service_started "${SVCNAME}"; then
59
		mark_service_stopped "${SVCNAME}"
60
	fi
61
62
	/usr/sbin/postfix -c ${CONF_DIR} abort 
63
	eend $?
64
}
65
66
flush() {
67
	ebegin "Flushing postfix mail queue (${CONF_DIR})"
68
	/usr/sbin/postfix -c ${CONF_DIR} flush > /dev/null 2>&1
69
	eend $?
70
}

Return to bug 369915