summaryrefslogtreecommitdiff
blob: 0ec0c475d6e4113f969798d1186adab28c9fdf46 (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
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

PIDFILE=/var/run/${SVCNAME}.pid

depend() {
	need g15daemon
        after xdm
}

start() {
	ebegin "Starting ${SVCNAME}"
	start-stop-daemon --start --background --make-pidfile --pidfile ${PIDFILE} --exec \
		/usr/bin/g15stats -- "${EXTRA_OPTS}"
	eend $?
}

stop() {
	ebegin "Stoping ${SVCNAME}"
	start-stop-daemon --stop --pidfile ${PIDFILE} --name g15stats
	eend $?
}