-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak systemd service to enable auto-restart
- Loading branch information
1 parent
aa87db6
commit 30aca82
Showing
3 changed files
with
25 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
[Unit] | ||
Description=Prusa Connect Camera Script | ||
After=network.target | ||
After=network.target systemd-udev-trigger.service | ||
Wants=network.target | ||
Requires=systemd-udev-trigger.service | ||
|
||
[Service] | ||
User=pi | ||
Group=pi | ||
EnvironmentFile=/home/pi/src/prusa-connect-camera-script/.%i | ||
ExecStart=/home/pi/src/prusa-connect-camera-script/prusa-connect-camera.sh | ||
Restart=on-failure | ||
Restart=always | ||
RestartSec=15 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |