aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index e3c0419e..c164dbe1 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -75,10 +75,10 @@ fi
# Check if $pid (could be plural) are running
checkpid() {
while [ "$1" ]; do
- [ -d /proc/$1 ] && return 0
+ [ -d /proc/$1 ] || return 1
shift
done
- return 1
+ return 0
}