mrueg       15/07/04 13:58:25

  Added:                ckb.initd
  Log:
  Initial version.
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

Revision  Changes    Path
1.1                  app-misc/ckb/files/ckb.initd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ckb/files/ckb.initd?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ckb/files/ckb.initd?rev=1.1&content-type=text/plain

Index: ckb.initd
===================================================================
#!/sbin/runscript
## Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

extra_started_commands="reload"
command="/usr/bin/ckb-daemon"
description="Controller for Corsair Keyboard Driver"
pidfile="/run/ckb.pid"
logfile="/var/run/ckb.log"

start() {
        ebegin "Starting Corsair Keyboard Driver"
        start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}" 
--background \
                --stdout "${logfile}" --stderr "${logfile}"
        eend $?
}

stop() {
        ebegin "Stopping Corsair Keyboard Driver"
        start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
        eend $?

}

reload() {
        stop
        sleep 3
        start
}




Reply via email to