]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 13 May 2023 23:11:32 +0000 (01:11 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 13 May 2023 23:11:32 +0000 (01:11 +0200)
- added check-daemon.sh
- you can execcute this by yourself or by cronjob

check-daemon.sh [new file with mode: 0755]

diff --git a/check-daemon.sh b/check-daemon.sh
new file mode 100755 (executable)
index 0000000..4b90d14
--- /dev/null
@@ -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