From 3f205eaafa652f8bb8b89403b685418097d40a61 Mon Sep 17 00:00:00 2001 From: ChChBot admin Date: Wed, 18 Feb 2015 23:01:52 +0100 Subject: [PATCH] simple restart script to keep the bot alive --- restartcloudbot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 restartcloudbot.sh diff --git a/restartcloudbot.sh b/restartcloudbot.sh new file mode 100755 index 0000000..8b28622 --- /dev/null +++ b/restartcloudbot.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +cd $(dirname $0) +while /bin/true; +do + sudo -u cloudbot ./cloudbot.py + sleep 10 +done +