aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmid/files/rc.gmid.new2
1 files changed, 1 insertions, 1 deletions
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