1 |
flameeyes 09/09/28 10:59:07 |
2 |
|
3 |
Added: ekeyd.init |
4 |
Log: |
5 |
Initial import of the EntropyKey daemon; this is still a work-in-progress ebuild, as it lacks an init script for the USB userland driver, and checks for Linux kernel options for CDC modem support. |
6 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-crypt/ekeyd/files/ekeyd.init |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/files/ekeyd.init?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/ekeyd/files/ekeyd.init?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: ekeyd.init |
15 |
=================================================================== |
16 |
#!/sbin/runscript |
17 |
# Copyright 2009 Gentoo Foundation |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekeyd/files/ekeyd.init,v 1.1 2009/09/28 10:59:07 flameeyes Exp $ |
20 |
|
21 |
INSTANCE="${SVCNAME#*.}" |
22 |
if [ -z "${INSTANCE}" ] || [ "${SVCNAME}" = "ekeyd" ]; then |
23 |
INSTANCE="ekeyd" |
24 |
fi |
25 |
|
26 |
depend() { |
27 |
use udev |
28 |
} |
29 |
|
30 |
start() { |
31 |
ebegin "Starting EntropyKey daemon" |
32 |
start-stop-daemon \ |
33 |
--start --pidfile "/var/run/${SVCNAME}.pid" \ |
34 |
--exec /usr/sbin/ekeyd -- \ |
35 |
-f "/etc/entropykey/${INSTANCE}.conf" \ |
36 |
-p "/var/run/${SVCNAME}.pid" |
37 |
eend $? |
38 |
} |
39 |
|
40 |
stop() { |
41 |
ebegin "Stopping EntropyKey daemon" |
42 |
start-stop-daemon \ |
43 |
--stop --pidfile "/var/run/${SVCNAME}.pid" \ |
44 |
--exec /usr/sbin/ekeyd |
45 |
eend $? |
46 |
} |