mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 09:27: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
|
|
@ -8,7 +8,7 @@ function prettyPrint {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Grab all service names
|
# Grab all service names
|
||||||
declare -a services=('caddy' 'daas' 'gitea' 'mirror-bot' 'mirror-bot-2' 'uno-bot' 'walls-bot')
|
declare -a services=('caddy' 'daas' 'gitea' 'mirror-bot' 'mirror-bot-2' 'pyrobud' 'uno-bot' 'walls-bot')
|
||||||
|
|
||||||
# Now loop through each service and install it
|
# Now loop through each service and install it
|
||||||
for service in "${services[@]}"; do
|
for service in "${services[@]}"; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue