summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Birchinger <joker@gentoo.org>2011-08-17 18:39:36 +0000
committerChristian Birchinger <joker@gentoo.org>2011-08-17 18:39:36 +0000
commite0525a787dee1ddececb4cccac77c1a3592e2721 (patch)
treee8c4b721c1a7411e505014d42655a92c17e7d01c /sys-apps/razercfg/files/razerd.init.d
parentRevbump for new gsdjvu release. Remove old. (diff)
downloadgentoo-2-e0525a787dee1ddececb4cccac77c1a3592e2721.tar.gz
gentoo-2-e0525a787dee1ddececb4cccac77c1a3592e2721.tar.bz2
gentoo-2-e0525a787dee1ddececb4cccac77c1a3592e2721.zip
Initial release
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/razercfg/files/razerd.init.d')
-rw-r--r--sys-apps/razercfg/files/razerd.init.d26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/razercfg/files/razerd.init.d b/sys-apps/razercfg/files/razerd.init.d
new file mode 100644
index 000000000000..9a771653f4a7
--- /dev/null
+++ b/sys-apps/razercfg/files/razerd.init.d
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/files/razerd.init.d,v 1.1 2011/08/17 18:39:36 joker Exp $
+
+depend() {
+ use logger
+}
+
+PIDFILE=/var/run/razerd/razerd.pid
+
+start() {
+ ebegin "Starting razerd"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec /usr/sbin/razerd \
+ -- --background --pidfile ${PIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping razerd"
+ start-stop-daemon --stop --pidfile ${PIDFILE}
+ eend $?
+}
+