mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 01:17:02 +05:30
Revert "Remove pyrobud"
This reverts commit d4c08a3c62
.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
e22853b02c
commit
020bf5eeeb
2 changed files with 36 additions and 1 deletions
35
systemd_units/pyrobud.service
Normal file
35
systemd_units/pyrobud.service
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Pyrobud Telegram selfbot
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# Base settings
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
# Execution parameters
|
||||||
|
User=pyrobud
|
||||||
|
Group=pyrobud
|
||||||
|
WorkingDirectory=/home/pyrobud/pyrobud
|
||||||
|
ExecStart=/home/pyrobud/pyrobud/venv/bin/python -O /home/pyrobud/pyrobud/main.py
|
||||||
|
|
||||||
|
# Limit damage in case something goes awry
|
||||||
|
MemoryLimit=256M
|
||||||
|
CPUQuota=200%
|
||||||
|
|
||||||
|
# Security
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectSystem=full
|
||||||
|
NoNewPrivileges=true
|
||||||
|
ProtectControlGroups=true
|
||||||
|
ProtectKernelModules=true
|
||||||
|
ProtectKernelTunables=true
|
||||||
|
PrivateDevices=true
|
||||||
|
RestrictAddressFamilies=AF_INET AF_INET6
|
||||||
|
RestrictNamespaces=true
|
||||||
|
RestrictRealtime=true
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -8,7 +8,7 @@ function prettyPrint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Grab all service names
|
# Grab all service names
|
||||||
declare -a services=('caddy' 'goaccess' 'mirror-bot' 'mirror-bot-2' 'uno-bot' 'walls-bot' 'walls-bot-rs')
|
declare -a services=('caddy' 'goaccess' 'mirror-bot' 'mirror-bot-2' 'uno-bot' 'pyrobud' 'walls-bot' 'walls-bot-rs')
|
||||||
declare -a timers=('goaccess-update')
|
declare -a timers=('goaccess-update')
|
||||||
|
|
||||||
# Now loop through each service and install it
|
# Now loop through each service and install it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue