x# new file: contrib/init/g15stats.confd
x# new file: contrib/init/g15stats.initd x# deleted: extras/g15stats.confd x# deleted: extras/g15stats.initd
This commit is contained in:
1 parent
14b45654a7
commit
8c7879896c
2 files changed
+43
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#!/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 $?
|
||||
}
|
||||
Reference in new issue
Block a user