File size: 943 Bytes
27867f1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#######################################################################
# 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
|