1[Unit] 2# inspiration from upstream init.d/service.fedora 3Description=Entropy Daemon based on the HAVEGE algorithm 4Documentation=man:haveged(8) http://www.issihosts.com/haveged/ 5DefaultDependencies=no 6# This would wait for filesystems, but we only need /dev/random, which 7# is certainly available after systemd initialised 8# After=systemd-tmpfiles-setup-dev.service 9Before=sysinit.target shutdown.target systemd-journald.service 10 11[Service] 12ExecStart=/usr/sbin/haveged -w 1024 -v 1 --Foreground 13Restart=always 14SuccessExitStatus=137 143 15 16# Only simple isolation methods that don't pull in dependencies 17CapabilityBoundingSet=CAP_SYS_ADMIN 18SecureBits=noroot-locked 19ProtectSystem=full 20 21[Install] 22WantedBy=sysinit.target 23