summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/razercfg/files/razerd.init.d-r2')
-rw-r--r--sys-apps/razercfg/files/razerd.init.d-r226
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/razercfg/files/razerd.init.d-r2 b/sys-apps/razercfg/files/razerd.init.d-r2
new file mode 100644
index 000000000000..4fab076cd206
--- /dev/null
+++ b/sys-apps/razercfg/files/razerd.init.d-r2
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use logger
+}
+
+PIDFILE=/run/razerd/razerd.pid
+
+start() {
+ ebegin "Starting razerd"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec /usr/bin/razerd \
+ -- --background --pidfile ${PIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping razerd"
+ start-stop-daemon --stop --pidfile ${PIDFILE}
+ eend $?
+}
+