DAEMON_OPTS are not recognized
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
haveged (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
DAEMON_OPTS in /etc/haveged are not recognized due to '--' in /etc/init.d/haveged
man bash: "A -- signals the end of options and disables further option processing. "
I wanted to set the write_wakeup_
e.g. DAEMON_OPTS="-w 1024"
This should modify /proc/sys/
diff --git a/init.d/haveged b/init.d/haveged
index 9e77653..a5a9dcb 100755
--- a/init.d/haveged
+++ b/init.d/haveged
@@ -126,13 +126,13 @@ running() {
start_server() {
# Start the process using the wrapper
if [ -z "$DAEMONUSER" ] ; then
- start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS
+ start_daemon -p $PIDFILE $DAEMON $DAEMON_OPTS
else
# if we are using a daemonuser then change the user id
- --exec $DAEMON -- $DAEMON_OPTS
+ --exec $DAEMON $DAEMON_OPTS
fi
return $errcode
In addition I'd like to set a sane default in /etc/default/
diff --git a/default/haveged b/default/haveged
index 308f547..9e972e3 100644
--- a/default/haveged
+++ b/default/haveged
@@ -7,4 +7,6 @@
#
# Additional options that are passed to the Daemon.
-DAEMON_OPTS=""
+# -w Set write_wakeup_
+# -v Set output level 0=minimal,
+DAEMON_OPTS="-w 1024 -v1"
lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04
apt-cache policy haveged
haveged:
Installed: 0.9-1
Candidate: 0.9-1
Version table:
*** 0.9-1 0
500 http://
500 http://
100 /var/lib/
oops sorry, i edited the wrong bug :-/