From 7e6759edb00bf634a168af438d4f5056b51b63c5 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 11 Apr 2018 18:51:22 +0000 Subject: [PATCH] Hide ps error about processes not found (we could be more specific...) It is superfluous, since we print: foo not running? (check /var/run/foo/foo.pid). --- etc/rc.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/rc.subr b/etc/rc.subr index 5fa3881828b1..e11b7a3f7875 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -1,4 +1,4 @@ -# $NetBSD: rc.subr,v 1.101 2018/04/01 18:26:51 kre Exp $ +# $NetBSD: rc.subr,v 1.102 2018/04/11 18:51:22 christos Exp $ # # Copyright (c) 1997-2011 The NetBSD Foundation, Inc. # All rights reserved. @@ -294,10 +294,10 @@ _find_processes() fi _proccheck=' - ps -o "pid,args" '"$_psargs"' | + ps -o "pid,args" '"$_psargs"' 2>&1 | while read _npid '"$_fp_args"'; do case "$_npid" in - PID) + ps:|PID) continue ;; esac ; '"$_fp_match"' echo -n "$_pref$_npid" ;