--- functions.5.22009-11-1913:58:31.000000000+0100+++ functions.5.42009-11-1914:00:31.000000000+0100
@@ -366,15+366,17 @@
base=${1##*/} # First try "pidof"+ __pids_var_run "$1""$pid_file"+RC=$?+if [ -z "$pid_file"-a -z "$pid" ]; then# <- this line seems to fix the problem
pid="$(__pids_pidof "$1")"# because we have no pidfile if running once+ fi
if [ -n "$pid" ]; then
echo $"${base} (pid $pid) is running..." return 0 fi- # Next try "/var/run/*.pid" files- __pids_var_run "$1" "$pid_file"- case "$?" in+ case "$RC" in 0) echo $"${base} (pid $pid) is running..." return 0