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