summaryrefslogtreecommitdiff
blob: 1d3e79c2fbe74aca59a07529feac7821cfd10468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

PID=/var/run/istatd/istat.pid

start() {
	ebegin "Starting istatd"
	start-stop-daemon --start \
		--exec /usr/bin/istatd \
		--make-pidfile \
		--chuid istatd:istatd \
		--pidfile ${PID} \
		--background \
		-- "${ISTATD_OPTS}" \
		>> /var/log/istatd 2>&1
	eend $?
}

stop() {
	ebegin "Stopping istatd"
	start-stop-daemon --stop \
		--pidfile ${PID}
	eend $?
}