From 30a4ed978603a1fd0626e5c6d0c8b5e250922fa9 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sun, 3 Apr 2016 01:00:30 +0200 Subject: [PATCH] Updated Autorestarting (upstart) (markdown) --- Autorestarting-(upstart).md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Autorestarting-(upstart).md b/Autorestarting-(upstart).md index 29a1827..ceb86ef 100644 --- a/Autorestarting-(upstart).md +++ b/Autorestarting-(upstart).md @@ -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.