modified: contrib/init/g15stats.initd modified: contrib/init/g15stats.run modified: contrib/init/rc.g15stats modified: dist/arch/g15stats-openrc/.SRCINFO modified: dist/arch/g15stats-openrc/PKGBUILD modified: dist/arch/g15stats-runit/.SRCINFO modified: dist/arch/g15stats-runit/PKGBUILD modified: dist/arch/g15stats-systemd/.SRCINFO modified: dist/arch/g15stats-systemd/PKGBUILD
23 lines
478 B
Plaintext
23 lines
478 B
Plaintext
#!/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
|
|
}
|
|
|
|
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 $?
|
|
}
|