mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-13 22:57:01 +05:30
This reverts commit d4c08a3c62
.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
35 lines
705 B
Desktop File
35 lines
705 B
Desktop File
[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
|