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

(-)a/net-mail/mailgraph/files/mailgraph.initd-new (-4 / +3 lines)
Lines 6-12 start() { Link Here
6
	ebegin "Starting mailgraph"
6
	ebegin "Starting mailgraph"
7
7
8
	# read mail log messages somewhere other than /var/log/syslog?
8
	# read mail log messages somewhere other than /var/log/syslog?
9
	[[ -n "${MG_LOGFILE}" ]] && MG_DAEMON_OPTS="${MG_DAEMON_OPTS} -l ${MG_LOGFILE}"
9
	[ -n "${MG_LOGFILE}" ] && MG_DAEMON_OPTS="${MG_DAEMON_OPTS} -l ${MG_LOGFILE}"
10
10
11
	# create /var/run/mailgraph if necessary
11
	# create /var/run/mailgraph if necessary
12
	if [ ! -d  /var/run/mailgraph ] ; then
12
	if [ ! -d  /var/run/mailgraph ] ; then
Lines 14-25 start() { Link Here
14
	fi
14
	fi
15
15
16
	UMASK=$(umask)
16
	UMASK=$(umask)
17
	umask ${MG_DAEMON_UMASK:-0077}
17
	umask "${MG_DAEMON_UMASK:-0077}"
18
	start-stop-daemon --start \
18
	start-stop-daemon --start \
19
		--name mailgraph \
19
		--name mailgraph \
20
		--user "${MG_DAEMON_UID}:${MG_DAEMON_GID}" \
20
		--user "${MG_DAEMON_UID}:${MG_DAEMON_GID}" \
21
		--name mailgraph \
21
		--name mailgraph \
22
		--pidfile ${MG_DAEMON_PID} \
22
		--pidfile "${MG_DAEMON_PID}" \
23
		--exec /usr/bin/mailgraph -- -v --daemon \
23
		--exec /usr/bin/mailgraph -- -v --daemon \
24
		--daemon-log="${MG_DAEMON_LOG}" \
24
		--daemon-log="${MG_DAEMON_LOG}" \
25
		--daemon-pid="${MG_DAEMON_PID}" \
25
		--daemon-pid="${MG_DAEMON_PID}" \
26
- 

Return to bug 849257