Files
g15stats/contrib/init/g15stats.initd
T
Daniel Menelkir 4c3eefd855 modified: contrib/init/g15stats.initd
renamed:    contrib/init/20g15stats -> contrib/init/g15stats.run
2021-02-11 22:31:50 -03:00

24 lines
496 B
Plaintext
Executable File

#!/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
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 $?
}