add systemd service
(untested, but should work)
This commit is contained in:
parent
f793c543ea
commit
5844863e98
1 changed files with 12 additions and 0 deletions
12
raspberry_pi/etc/systemd/system/space_status.service
Normal file
12
raspberry_pi/etc/systemd/system/space_status.service
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Space Status Python Script
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/home/pi/PathToDoorStatusFolder/
|
||||||
|
ExecStart=python3 main.py
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Reference in a new issue