Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 455604
Collapse All | Expand All

(-)/etc/init.d/spamd.orig (+10 lines)
Lines 18-23 Link Here
18
18
19
start() {
19
start() {
20
	ebegin "Starting spamd"
20
	ebegin "Starting spamd"
21
22
	# get user and create PID_DIR if necessary
23
	[[ $SPAMD_OPTS =~ \-u( |)([^\ ]*)  ]] && USER=${BASH_REMATCH[2]}
24
	PID_DIR="$(dirname "$PIDFILE")"
25
	if [ -n "$USER" ] ;then
26
		[ ! -e "$PID_DIR" ] && checkpath -q -d "$PID_DIR" -o $USER:$USER 
27
	else
28
		[ ! -e "$PID_DIR" ] && checkpath -q -d "$PID_DIR"
29
	fi
30
21
	start-stop-daemon --start --quiet \
31
	start-stop-daemon --start --quiet \
22
		--name spamd \
32
		--name spamd \
23
		--nicelevel ${SPAMD_NICELEVEL:-0} \
33
		--nicelevel ${SPAMD_NICELEVEL:-0} \

Return to bug 455604