Skip to content

Commit

Permalink
Add auto restart in service example
Browse files Browse the repository at this point in the history
  • Loading branch information
delphiki authored Feb 9, 2021
1 parent 29bbef2 commit 9b41373
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Description=AirPods Battery Monitor
[Service]
ExecStart=/usr/bin/python3 /PATH/TO/AirStatus/main.py /tmp/airstatus.out
Restart=always
RestartSec=3
[Install]
WantedBy=default.target
Expand Down

0 comments on commit 9b41373

Please sign in to comment.