From: Michael Tremer Date: Sat, 23 Mar 2024 14:29:27 +0000 (+0100) Subject: initscripts: Silence error messages when testing if a process is running X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c2f1a0b34fc01ac8f41329bce3011392e0d39ac;p=people%2Fms%2Fipfire-2.x.git initscripts: Silence error messages when testing if a process is running Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/functions b/src/initscripts/system/functions index 125aa1dc6..1a9ce8af8 100644 --- a/src/initscripts/system/functions +++ b/src/initscripts/system/functions @@ -369,7 +369,7 @@ pidofproc() for pid in ${lpids} do if [ "${pid}" -ne "$$" -a "${pid}" -ne "${PPID}" ]; then - kill -0 "${pid}" > /dev/null && + kill -0 "${pid}" 2> /dev/null && pidlist="${pidlist} ${pid}" fi