Search the web
Sign In
New User? Sign Up
FreeBSD-rc · Improving FreeBSD startup scripts
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
patch to shut up ps(1) errors - Checked by AntiVir DEMO version -   Message List  
Reply | Forward Message #727 of 729 |
Hi Luke, folks,

The attached patch shuts up ps(1) when the program we're looking for
does not exist. The error message is something along the lines of:
ps: kvm_getprocs: no such process
It's not critical, but it's annoying :(
I don't know if NetBSD ps(1) does the same thing, but
even if it doesn't it should be harmless.

Cheers.
--
Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@... | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55
mtm@...| FreeBSD - Unleash the Daemon !


Wed Mar 3, 2004 2:51 pm

mike_makonnen
Offline Offline
Send Email Send Email

Index: etc/rc.subr
===================================================================
RCS file: /home/ncvs/src/etc/rc.subr,v
retrieving revision 1.24
diff -u -r1.24 rc.subr
--- etc/rc.subr 27 Feb 2004 09:58:50 -0000 1.24
+++ etc/rc.subr 3 Mar 2004 17:09:08 -0000
@@ -267,7 +267,7 @@
fi

_proccheck='
- ps -o "pid,command" '"$_psargs"' |
+ ps 2>/dev/null -o "pid,command" '"$_psargs"' |
while read _npid '"$_fp_args"'; do
case "$_npid" in
PID)


Forward
Message #727 of 729 |
Expand Messages Author Sort by Date

Hi Luke, folks, The attached patch shuts up ps(1) when the program we're looking for does not exist. The error message is something along the lines of: ps:...
Mike Makonnen
mike_makonnen
Offline Send Email
Mar 3, 2004
3:20 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help