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

Collapse All | Expand All

(-)/usr/portage/mail-filter/amavisd-new/files/amavisd.initd (+7 lines)
Lines 9-14 Link Here
9
prog="/usr/sbin/amavisd"
9
prog="/usr/sbin/amavisd"
10
progname="amavisd-new"
10
progname="amavisd-new"
11
11
12
PIDFILE="/run/amavisd/amavisd.pid"
13
12
depend() {
14
depend() {
13
	need net
15
	need net
14
	use logger antivirus snmpd
16
	use logger antivirus snmpd
Lines 22-27 Link Here
22
}
24
}
23
25
24
stop() {
26
stop() {
27
	if [[ ! -e $PIDFILE ]] ; then
28
		ewarn "Amavisd crashed or was terminated!"
29
		return 0
30
	fi
31
25
	ebegin "Stopping ${progname}"
32
	ebegin "Stopping ${progname}"
26
	"${prog}" stop 1>/dev/null
33
	"${prog}" stop 1>/dev/null
27
	eend $?
34
	eend $?

Return to bug 507352