blob: ad9476e780c28178da7795ed64035e917e54d9fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/sbin/runscript
# Copyright 2009-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ekey-egd-linux/files/ekey-egd-linux.init,v 1.1 2010/10/23 17:19:32 flameeyes Exp $
depend() {
use net
}
start() {
ebegin "Starting EntropyKey EGD client"
start-stop-daemon \
--start --pidfile "/var/run/${SVCNAME}.pid" \
--exec /usr/libexec/ekey-egd-linux -- \
-H ${HOST} -p ${PORT} \
-r ${RECONNECTINTERVAL} \
-b ${BLOCKS} \
-D "/var/run/${SVCNAME}.pid"
sysctl kernel.random.write_wakeup_threshold=$WATERMARK >/dev/null 2>&1
eend $?
}
stop() {
ebegin "Stopping EntropyKey EGD client"
start-stop-daemon \
--stop --pidfile "/var/run/${SVCNAME}.pid" \
--exec /usr/libexec/ekey-egd-linux
eend $?
}
|