systemd services on pi
[air-quality] / system / air-zph02.service
index c76b5c3..26e1c8f 100644 (file)
@@ -2,9 +2,10 @@
 Description=Air
 
 [Service]
 Description=Air
 
 [Service]
-User=dpavlin
-ExecStart=/home/dpavlin/air-quality/zph02.pl
-Restart=on-failure
+User=pi
+ExecStart=/home/pi/air-quality/zph02.pl
+Restart=always
+RestartSec=3s
 
 [Install]
 WantedBy=multi-user.target
 
 [Install]
 WantedBy=multi-user.target