diff options
Diffstat (limited to 'sys-apps/razercfg/files/razerd.init.d')
-rw-r--r-- | sys-apps/razercfg/files/razerd.init.d | 26 |
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..86847b24468a --- /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 +# $Id$ + +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 $? +} + |