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