On Tue, Apr 1, 2008 at 12:34 AM, Jordan Brown (Sun)
<opensolaris at jordan.maileater.net> wrote:
> Peter Tribble wrote:
>
> > 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?
> >
>
>  One trick that one of our people (Paul Richards, I believe) came up with
> was to have a master service on which all of the other application's
> services depend.  With all of the other services enabled, enabling the
> master service lets them all run, and disabling the master service makes
> them all shut down.

I hadn't thought of sticking a dependency in like that. It would
almost work, but it doesn't quite make it - while it might allow
them to run, it doesn't guarantee that they're all in the desired
state. (In other words, if one service is disabled, this trick won't
enable it.)

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

Reply via email to