Browse Source

add systemd service file

master
Andreas Demmelbauer 4 years ago
parent
commit
9aab5bf59a
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      demotape.service

+ 13
- 0
demotape.service View File

@@ -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

Loading…
Cancel
Save