server-config/systemd_units/pyrobud.service
Harsh Shandilya 12d96a9d7c
systemd: Add pyrobud
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-11-10 10:24:18 +05:30

20 lines
391 B
Desktop File

[Unit]
Description=Pyrobud Telegram userbot service
After=network.target
[Service]
Restart=on-abort
Type=simple
User=bot
WorkingDirectory=/home/bot/pyrobud
ExecStart=/home/bot/pyrobud/venv/bin/python main.py
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5s
PrivateTmp=true
PrivateDevices=false
ProtectSystem=full
[Install]
WantedBy=multi-user.target