Added automatic restart feature with supervisor

If the script fails for some reason, then supervisor will restart the script automatically.
This commit is contained in:
Ace 2019-05-08 14:52:32 +02:00 committed by GitHub
parent f7a913e9ec
commit 5e29cc3251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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