Created Autorestarting (upstart) (markdown)

Twentysix 2016-04-01 00:16:23 +02:00
parent 509bfc7154
commit 1022538f54

@ -0,0 +1,22 @@
How to make it auto restart in case of crash, using Upstart. This guide assumes you used the Linux guide to install Red.
`sudo nano /etc/init/red.conf`
Paste this script
```
start on runlevel [2345]
stop on runlevel [016]
respawn
chdir /home/ubuntu/Red-DiscordBot
setuid ubuntu
setgid ubuntu
exec python3.5 red.py --no-prompt
```
Save with CTRL+O.
You can now start Red using
`sudo start red`
Other available commands:
`sudo stop red`
`sudo restart red`