While I believe you can supply multiple fmris to svcadm,
it won't accept wildcards (in other words, if you specify
something that matches multiple fmris, it will fail with an
error). As this is mentioned in the man page, I imagine
it's a deliberate design choice.

What I've found myself doing recently is having to stop/start
all smf services associated with an application. Essentially
what I would like to do is:

svcadm disable "*foobar*"

Is there a better way to do this than

svcadm disable `svcs -a | grep foobar | awk '{print$2}'`

(or some other shell construct of your choice)

or is there some other way that the problem might be
approached?

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

Reply via email to