From ef67faf6f82a94be8ef5b2adb54a132d09659472 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 5 Nov 2020 21:31:18 +0200 Subject: [PATCH] Add systemd service --- kdoorpi.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 kdoorpi.service diff --git a/kdoorpi.service b/kdoorpi.service new file mode 100644 index 0000000..775e29f --- /dev/null +++ b/kdoorpi.service @@ -0,0 +1,15 @@ +# /etc/systemd/system/kdoorpi.service +[Unit] +Description=Kdoorpi service +Requires=pigpiod.service +After=pigpiod.service + +[Service] +Environment=PYTHONUNBUFFERED=1 +ExecStart=/home/pi/kdoorpi/run.sh +WorkingDirectory=/home/pi/kdoorpi +User=pi +Restart=always + +[Install] +WantedBy=multi-user.target