Updated Autorestarting (upstart) (markdown)

Twentysix
2016-04-03 01:00:30 +02:00
parent 8ff10003f8
commit 30a4ed9786

@@ -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`
Paste this script
Paste this script, replace `username` with your account name.
```
start on runlevel [2345]
stop on runlevel [016]
respawn
chdir /home/ubuntu/Red-DiscordBot
setuid ubuntu
setgid ubuntu
chdir /home/username/Red-DiscordBot
setuid username
setgid username
exec python3.5 red.py --no-prompt
```
Save with CTRL+O.