mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 21:07:00 +05:30
systemd: Add pyrobud
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
ff52cb7db8
commit
12d96a9d7c
2 changed files with 21 additions and 1 deletions
20
systemd_units/pyrobud.service
Normal file
20
systemd_units/pyrobud.service
Normal file
|
@ -0,0 +1,20 @@
|
|||
[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
|
Loading…
Add table
Add a link
Reference in a new issue