From 5844863e987c06e26028755cca6e5c7bbc1b22c5 Mon Sep 17 00:00:00 2001 From: quanten Date: Sat, 14 Dec 2019 18:08:48 +0100 Subject: [PATCH] add systemd service (untested, but should work) --- raspberry_pi/etc/systemd/system/space_status.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 raspberry_pi/etc/systemd/system/space_status.service 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 +