mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Updated Autorestarting (upstart) (markdown)
@@ -4,15 +4,15 @@ How to make it auto restart in case of crash, using Upstart. This guide assumes
|
|||||||
|
|
||||||
`sudo nano /etc/init/red.conf`
|
`sudo nano /etc/init/red.conf`
|
||||||
|
|
||||||
Paste this script
|
Paste this script, replace `username` with your account name.
|
||||||
```
|
```
|
||||||
start on runlevel [2345]
|
start on runlevel [2345]
|
||||||
stop on runlevel [016]
|
stop on runlevel [016]
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
chdir /home/ubuntu/Red-DiscordBot
|
chdir /home/username/Red-DiscordBot
|
||||||
setuid ubuntu
|
setuid username
|
||||||
setgid ubuntu
|
setgid username
|
||||||
exec python3.5 red.py --no-prompt
|
exec python3.5 red.py --no-prompt
|
||||||
```
|
```
|
||||||
Save with CTRL+O.
|
Save with CTRL+O.
|
||||||
|
|||||||
Reference in New Issue
Block a user