-[Unit]
-Description=Entropy Daemon based on the HAVEGE algorithm
-Documentation=man:haveged(8) http://www.issihosts.com/haveged/
-
-[Service]
-Type=simple
-ExecStart=@SBIN_DIR@/haveged -w 1024 -v 1 --Foreground
-SuccessExitStatus=143
-
-[Install]
-WantedBy=multi-user.target
+[Unit]\r
+Description=Entropy Daemon based on the HAVEGE algorithm\r
+Documentation=man:haveged(8) http://www.issihosts.com/haveged/\r
+DefaultDependencies=no\r
+Before=sysinit.target shutdown.target systemd-journald.service\r
+\r
+[Service]\r
+ExecStart=@SBIN_DIR@/haveged -w 1024 -v 1 --Foreground\r
+Restart=always\r
+SuccessExitStatus=137 143\r
+\r
+[Install]\r
+WantedBy=sysinit.target\r