From 5e29cc3251aea74e83d6eb160f0f9813f523ca0b Mon Sep 17 00:00:00 2001 From: Ace Date: Wed, 8 May 2019 14:52:32 +0200 Subject: [PATCH] Added automatic restart feature with supervisor If the script fails for some reason, then supervisor will restart the script automatically. --- Installer-with-debug.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Installer-with-debug.sh b/Installer-with-debug.sh index ba438c8..0628b89 100644 --- a/Installer-with-debug.sh +++ b/Installer-with-debug.sh @@ -240,6 +240,7 @@ stdout_logfile = /home/pi/Inky-Calendar/E-Paper.log stdout_logfile_maxbytes = 1MB stderr_logfile = /home/pi/Inky-Calendar/E-Paper-err.log stderr_logfile_maxbytes = 1MB +autorestart = true EOF sudo service supervisor start E-Paper