Skip to content

Commit 513fb27

Browse files
committed
feat: add service option to continous running carousel
1 parent 6eff8f6 commit 513fb27

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

middager-sync.service

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
[Unit]
2-
Description=Runs Middager banner carousel
2+
Description=Middager banner carousel
33
Wants=network-online.target
44
After=network-online.target
55

66
[Service]
7-
User=appropriate-username
8-
Group=appropriate-group
9-
10-
WorkingDirectory=/home/pi
11-
12-
ExecStart=/usr/bin/python3 Middager/middag.py
7+
Type=simple
8+
Restart=on-abort
9+
ExecStart=/usr/bin/python3 /home/pi/Middager/middag.py
1310

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

0 commit comments

Comments
 (0)