From c06315cad32bd3413f1534846d90bbfa9ef48a9e Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Wed, 9 Oct 2024 14:30:13 -0500 Subject: gmid: Fix the rc script fix --- gmid/files/rc.gmid.new | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmid/files/rc.gmid.new b/gmid/files/rc.gmid.new index 9438b36..5e24edf 100644 --- a/gmid/files/rc.gmid.new +++ b/gmid/files/rc.gmid.new @@ -33,7 +33,7 @@ gmid_start() { local pid="$(2>/dev/null cat /run/gmid/gmid.pid)" - if [ -n "$pid" ] || kill -0 "$pid" 2>/dev/null; then + if [ -n "$pid" ] && kill -0 "$pid" 2>/dev/null; then echo "gmid is already running" return -- cgit v1.2.3