X-Git-Url: https://git.tld-linux.org/?p=rc-scripts.git;a=blobdiff_plain;f=lib%2Ffunctions;h=ced6e97caf095d2f2d1d720911aacb94bf24ee69;hp=41871391e435759b513ffd5e96343c4a0d7bc018;hb=353d0880d93063ab3a069a7b2ea91e362082550e;hpb=0030b343be6a069b470cbf713fd811744d60678a diff --git a/lib/functions b/lib/functions index 4187139..ced6e97 100644 --- a/lib/functions +++ b/lib/functions @@ -979,6 +979,8 @@ pidofproc() { for p in $(< "${pidfile}"); do [ -z "$(echo "$p" | awk '{gsub(/[0-9]/,"");print;}')" ] && pid="$pid $p" done + else + unset pidfile fi # Next try "pidof" if pidfile is not specified