2015-03-19 22:02:02 +01:00
|
|
|
[Unit]
|
2020-06-10 00:41:15 +02:00
|
|
|
# inspiration from upstream init.d/service.fedora
|
|
|
|
Description=Entropy Daemon based on the HAVEGE algorithm
|
|
|
|
Documentation=man:haveged(8) http://www.issihosts.com/haveged/
|
|
|
|
DefaultDependencies=no
|
|
|
|
# This would wait for filesystems, but we only need /dev/random, which
|
|
|
|
# is certainly available after systemd initialised
|
|
|
|
# After=systemd-tmpfiles-setup-dev.service
|
|
|
|
Before=sysinit.target shutdown.target systemd-journald.service
|
2015-03-19 22:02:02 +01:00
|
|
|
|
|
|
|
[Service]
|
2020-06-10 00:41:15 +02:00
|
|
|
ExecStart=/usr/sbin/haveged -w 1024 -v 1 --Foreground
|
|
|
|
Restart=always
|
|
|
|
SuccessExitStatus=137 143
|
|
|
|
|
|
|
|
# Only simple isolation methods that don't pull in dependencies
|
|
|
|
CapabilityBoundingSet=CAP_SYS_ADMIN
|
|
|
|
SecureBits=noroot-locked
|
|
|
|
ProtectSystem=full
|
2015-03-19 22:02:02 +01:00
|
|
|
|
|
|
|
[Install]
|
2020-06-10 00:41:15 +02:00
|
|
|
WantedBy=sysinit.target
|