Initial Commit
This commit is contained in:
commit
6cc81ce6d8
3654 files changed
+1404676
No files matched your search
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Discord Bot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=minecraft
|
||||
WorkingDirectory=/home/minecraft/GPack
|
||||
ExecStart=/home/minecraft/.local/bin/uv run discord_bot.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
# Optional but recommended
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
# Allow binding to privileged ports like :80 while still running as `minecraft`.
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user