cab / lib /tvheadend /service /Unix /cabernet.service
docs4you's picture
Upload 487 files
27867f1 verified
raw
history blame contribute delete
943 Bytes
#######################################################################
# OS: Ubuntu/Debian
# File location: /lib/systemd/system/
# Update ExecStart to point to location of tvh_main.py
# Update User to set account to use to run service
#
# Once place, run the following command to add the service
# sudo systemctl enable locast.service
# sudo systemctl start locast.service
#######################################################################
[Unit]
Description=Cabernet Service
Wants=network-online.target
After=network.target network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/hts/cabernet/tvh_main.py
# Disable Python's buffering of STDOUT and STDERR, so that output from the
# service shows up immediately in systemd's logs
Environment=PYTHONUNBUFFERED=1
Restart=on-failure
RestartSec=54s
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=cabernet
User=hts
[Install]
WantedBy=multi-user.target