summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.d/service.fedora24
1 files changed, 13 insertions, 11 deletions
diff --git a/init.d/service.fedora b/init.d/service.fedora
index 60ea1a7..25be37b 100644
--- a/init.d/service.fedora
+++ b/init.d/service.fedora
@@ -1,11 +1,13 @@
-[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]
+Description=Entropy Daemon based on the HAVEGE algorithm
+Documentation=man:haveged(8) http://www.issihosts.com/haveged/
+DefaultDependencies=no
+Before=sysinit.target shutdown.target systemd-journald.service
+
+[Service]
+ExecStart=@SBIN_DIR@/haveged -w 1024 -v 1 --Foreground
+Restart=always
+SuccessExitStatus=137 143
+
+[Install]
+WantedBy=sysinit.target