From 9aab5bf59a90be58c4d5d505b5894f9bd6c2a543 Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Tue, 1 Dec 2020 18:55:43 +0100 Subject: [PATCH] add systemd service file --- demotape.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 demotape.service diff --git a/demotape.service b/demotape.service new file mode 100644 index 0000000..6a62896 --- /dev/null +++ b/demotape.service @@ -0,0 +1,13 @@ +[Unit] +Description=checks regulary the webstreams of all district parlaments in vienna. Online streams get taped. +After=multi-user.target + +[Service] +Type=idle +User=pi +ExecStart=/usr/bin/python3 /path/to/demotape.py > /var/log/demotape.log 2>&1 +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target \ No newline at end of file