2021-02-10 07:32:37 -03:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
PIDFILE=/var/run/${SVCNAME}.pid
|
|
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
|
need g15daemon
|
2021-04-25 07:21:46 -03:00
|
|
|
after display-manager
|
2021-02-10 07:32:37 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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 $?
|
|
|
|
|
}
|