return json response if instance already running
parent
f10bf71a5b
commit
43f874fd55
|
|
@ -13,6 +13,7 @@ LOCKFILE="./doorcontrol-main.lock"
|
||||||
|
|
||||||
# Exit if instance already running
|
# Exit if instance already running
|
||||||
if [ -e "$LOCKFILE" ]; then
|
if [ -e "$LOCKFILE" ]; then
|
||||||
|
echo '{"error": "running"}'
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
touch "$LOCKFILE"
|
touch "$LOCKFILE"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue