View | Details | Raw Unified | Return to bug 259699 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/clamav/files/clamav-clamd.in (+4 lines)
Lines 25-30 load_rc_config "$name" Link Here
25
: ${clamav_clamd_enable:=NO}
25
: ${clamav_clamd_enable:=NO}
26
: ${clamav_clamd_pidfile="%%CLAMAV_CLAMD_PIDFILE%%"}
26
: ${clamav_clamd_pidfile="%%CLAMAV_CLAMD_PIDFILE%%"}
27
27
28
: ${clamav_clamd_uid:=clamav}
29
: ${clamav_clamd_gid:=clamav}
30
28
command=%%PREFIX%%/sbin/clamd
31
command=%%PREFIX%%/sbin/clamd
29
pidfile=${clamav_clamd_pidfile}
32
pidfile=${clamav_clamd_pidfile}
30
required_dirs=%%DBDIR%%
33
required_dirs=%%DBDIR%%
Lines 41-46 clamav_clamd_precmd() Link Here
41
		echo "Missing %%DBDIR%%/*.cvd or *.cld files.  You must run freshclam first"
44
		echo "Missing %%DBDIR%%/*.cvd or *.cld files.  You must run freshclam first"
42
		exit 1
45
		exit 1
43
	fi
46
	fi
47
	install -d -o ${clamav_clamd_uid} -g ${clamav_clamd_gid} -m 750 $( dirname ${clamav_clamd_pidfile} )
44
}
48
}
45
49
46
run_rc_command "$1"
50
run_rc_command "$1"

Return to bug 259699