Added a restart on failure + made systemd install the default.
[breezed.git] / breezed.service
index 367a3e9..81e6b94 100644 (file)
@@ -1,7 +1,13 @@
 [Unit]
 Description=Fan control daemon
+After=syslog.target
 
 [Service]
 Type=simple
 ExecStart=/usr/bin/breezed
-PIDFile=/var/run/breezed.pid
+StandardError=syslog+console
+Restart=on-failure
+RestartSec=3
+
+[Install]
+WantedBy=multi-user.target