diff --git a/raspberry_pi/etc/systemd/system/space_status.service b/raspberry_pi/etc/systemd/system/space_status.service new file mode 100644 index 0000000..51207d5 --- /dev/null +++ b/raspberry_pi/etc/systemd/system/space_status.service @@ -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 +