Public bug reported:
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_threshold to 1024 bits in /etc/default/haveged,
e.g. DAEMON_OPTS="-w 1024"
This should modify /proc/sys/kernel/random/write_wakeup_threshold, but
it doesn't.
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
errcode=$?
else
# if we are using a daemonuser then change the user id
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--chuid $DAEMONUSER \
- --exec $DAEMON -- $DAEMON_OPTS
+ --exec $DAEMON $DAEMON_OPTS
errcode=$?
fi
return $errcode
In addition I'd like to set a sane default in /etc/default/haveged
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_threshold to 1024 bits
+# -v Set output level 0=minimal,1=config/fill items
+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://mirror.hetzner.de/ubuntu/packages/ lucid/universe Packages
500 http://de.archive.ubuntu.com/ubuntu/ lucid/universe Packages
100 /var/lib/dpkg/status
** Affects: haveged (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/915218
Title:
DAEMON_OPTS are not recognized
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haveged/+bug/915218/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs