Skip to content

Commit

Permalink
Add strict restart policy, improve systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
MikMuellerDev committed Jun 22, 2022
1 parent 2f4fa91 commit 10f68bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dist/smarthome-hw-ir.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=infrared receiver for smarthome
Description=Infrared receiver for Smarthome
After=network.target

[Service]
Expand All @@ -8,6 +8,7 @@ User=pi
Group=pi
WorkingDirectory=/usr/bin/smarthome-hw-ir/
ExecStart=/usr/bin/smarthome-hw-ir/smarthome-hw-ir
Restart=on-failure
Restart=always

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit 10f68bd

Please sign in to comment.