Browse Source

fix lock condition

HgO 2 weeks ago
parent
commit
a8c007d862
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conf/ynh-vpnclient

+ 1 - 1
conf/ynh-vpnclient

@@ -169,7 +169,7 @@ case "$action" in
       exit 0
     fi
     
-    if lockfile -r 0 /tmp/.ynh-vpnclient-started &>/dev/null; then
+    if ! lockfile -r 0 /tmp/.ynh-vpnclient-started &>/dev/null; then
       info "Service is already running"
       exit 0
     fi