[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