]> git.mxchange.org Git - fba.git/blob - check-daemon.sh
4b90d1472174d334134bb5c1ee62e331543a3294
[fba.git] / check-daemon.sh
1 #!/bin/sh
2
3 CHECK=$(screen -list|grep daemon)
4
5 if [ -z "${CHECK}" ]
6 then
7         echo "$0: Daemon isn't running, starting in background ..."
8         screen -dmS daemon python3 api.py
9 fi