From: | "Manuel Rueger (mrueg)" <mrueg@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-misc/ckb/files: ckb.initd |
Date: | Sat, 04 Jul 2015 13:58:31 |
Message-Id: | 20150704135825.BE51E752@oystercatcher.gentoo.org |
1 | mrueg 15/07/04 13:58:25 |
2 | |
3 | Added: ckb.initd |
4 | Log: |
5 | Initial version. |
6 | |
7 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key ) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-misc/ckb/files/ckb.initd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ckb/files/ckb.initd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ckb/files/ckb.initd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: ckb.initd |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | ## Copyright 1999-2015 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | |
21 | extra_started_commands="reload" |
22 | command="/usr/bin/ckb-daemon" |
23 | description="Controller for Corsair Keyboard Driver" |
24 | pidfile="/run/ckb.pid" |
25 | logfile="/var/run/ckb.log" |
26 | |
27 | start() { |
28 | ebegin "Starting Corsair Keyboard Driver" |
29 | start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}" --background \ |
30 | --stdout "${logfile}" --stderr "${logfile}" |
31 | eend $? |
32 | } |
33 | |
34 | stop() { |
35 | ebegin "Stopping Corsair Keyboard Driver" |
36 | start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}" |
37 | eend $? |
38 | |
39 | } |
40 | |
41 | reload() { |
42 | stop |
43 | sleep 3 |
44 | start |
45 | } |