From: Roland Häder Date: Sat, 13 May 2023 23:11:32 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a24079c614ddc81ee1dc289ebe6c477ab4cd0633;p=fba.git Continued: - added check-daemon.sh - you can execcute this by yourself or by cronjob --- diff --git a/check-daemon.sh b/check-daemon.sh new file mode 100755 index 0000000..4b90d14 --- /dev/null +++ b/check-daemon.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +CHECK=$(screen -list|grep daemon) + +if [ -z "${CHECK}" ] +then + echo "$0: Daemon isn't running, starting in background ..." + screen -dmS daemon python3 api.py +fi