瀏覽代碼

add systemd service file

master
Andreas Demmelbauer 4 年之前
父節點
當前提交
9aab5bf59a
共有 1 個檔案被更改,包括 13 行新增0 行删除
  1. +13
    -0
      demotape.service

+ 13
- 0
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

Loading…
取消
儲存