Skip to content

Commit

Permalink
Improve restarting of door-light service
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmarklloyd committed Nov 18, 2021
1 parent 6fc4e9b commit 1ddcc42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scratch/door-light/unit.service
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[Unit]
Description=Door-Light-Alert
After=network.target
StartLimitInterval=300
StartLimitBurst=10

[Service]
ExecStart=/home/pi/door-light
WorkingDirectory=/home/pi/
StandardOutput=inherit
StandardError=inherit
Restart=always
RestartSec=30
User=pi

Environment=CLOUDMQTT_URL=<url>
Expand Down

0 comments on commit 1ddcc42

Please sign in to comment.