5
# Required-Start: $remote_fs $syslog
6
# Required-Stop: $remote_fs $syslog
8
# Default-Start: 2 3 4 5
10
# Short-Description: Entropy Key Manager
13
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
14
DAEMON=/usr/sbin/ekeyd
16
[ -x "$DAEMON" ] || exit 0
18
. /lib/lsb/init-functions
22
test -f /etc/default/ekeyd && . /etc/default/ekeyd
24
if [ ! -s /etc/entropykey/ekeyd.conf ]; then
25
log_failure_msg "Could not find /etc/entropykey/entropykey.conf (aborting)"
31
if [ "x$START_EKEYD" != "xYES" ]; then
32
log_daemon_msg "Simtec Entropy Key Daemon is disabled"
36
log_daemon_msg "Starting Simtec Entropy Key Daemon" "ekeyd"
37
start-stop-daemon --start --exec $DAEMON || true
45
log_daemon_msg "Stopping Simtec Entropy Key Daemon" "ekeyd"
46
start-stop-daemon --stop --pidfile /var/run/ekeyd.pid --exec $DAEMON --oknodo --quiet || true
50
status_of_proc $DAEMON ekeyd
53
echo "Usage: /etc/init.d/ekeyd {start|stop}"