Package: haveged
Version: 1.9.1-1
Severity: Important

haveged(8) is not honoring the DAEMON_ARGS variable in /etc/default/haveged
when the init system is systmed(8). This is due to the following configuration
file:

    $ cat /etc/systemd/system/default.target.wants/haveged.service
    [Unit]
    Description=Entropy daemon using the HAVEGE algorithm
    Documentation=man:haveged(8) http://www.issihosts.com/haveged/

    [Service]
    ExecStart=/usr/sbin/haveged --Foreground --verbose=1 --write=1024

    [Install]
    WantedBy=default.target

Setting the "write_wakeup_threshold" in /etc/default/haveged to 4096, instead
of the default 1024, it should be reflected when restarting the daemon, but
seems to still be setting the default to 1024 per systemd(8):

    $ grep DAEMON_ARGS /etc/default/haveged
    DAEMON_ARGS="-w 4096"
    $ sudo /etc/init.d/haveged restart
    [ ok ] Restarting haveged (via systemctl): haveged.service.
    $ ps -ef | grep 'havege[d]'
    root       458     1  0 10:30 ?        00:00:00 /usr/sbin/haveged 
--Foreground --verbose=1 --write=1024

Changing the /etc/systemd/system/default.target.wants/haveged.service config
file to set the write_wakeup_threshold to 4096 fixes this. So, either the
/etc/default/haveged config file is no longer necessary with systemd(8), or a
bug exists such that it should be overwriting the entries in
/etc/systemd/system/default.target.wants/haveged.service, but is not.

Thanks,

-- 
. o .   o . o   . . o   o . .   . o .
. . o   . o o   o . o   . o o   . . o
o o o   . o .   . o o   o o .   o o o

Attachment: pgp0IX5rPFL9h.pgp
Description: PGP signature

Reply via email to