On Jan 9, 2008 9:44 PM, Mike Shapiro <mws at sun.com> wrote: > On Wed, Jan 09, 2008 at 09:38:41PM -0600, Mark Martin wrote: > > [out of the distant recesses of a task-list, an ARC case for an RFE > > re-emerges...] > > > > I'd like to submit for preview a case for RFE: 6196126 > > (http://bugs.opensolaris.org/view_bug.do?bug_id=6196126) > > Synopsis: svcs -xq (add quiet flag to svcs -x) > > > > Thanks, > > Mark > > Certainly it's harmless, but is there any reason: > > svcs -x >/dev/null > > isn't sufficient? The reason shell redirection was invented is > that it's kind of annoying to go write extra C code in every > command for this kind of thing. >
I'm sure that's because currently, svcs -x will still return 0 if a service whether any services are in a maintenance state or not. I originally had verbage in the MAN that highlighted this fact for current versions of svcs and took it out at the last minute. Perhaps I should put it back in. The perhaps-not-so-obvious trick here is the new error code. I suppose you could workaround with: svcs -x | grep "maint" But I'll offer for another motivation that svcprop has an analogue. Mark