DisBot.py/disbot.service
2024-10-28 13:32:24 +01:00

28 lines
405 B
Desktop File

[Unit]
Description=Discord bot
After=syslog.target
[Service]
Type=simple
User=disbot
Group=disbot
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
PrivateDevices=true
PrivateUsers=true
WorkingDirectory=/opt/disbot/
ExecStart=/opt/disbot/env/bin/python3 /opt/disbot/disbot.py
Restart=on-failure
[Install]
WantedBy=multi-user.target