* Marcus Reid <[EMAIL PROTECTED]>:
>
> I'm wondering if there's an elegant way to stop these processes during
> a system shutdown. The best that I've thought of is something like:
> 
> for sname in `find /service -name supervise`; do
>       svc -d `dirname $sname`
> done

Try this:

      % for sname in `ls -1d /service/*`; do svc -d $sname; done        

(You had two problems with your command.  `find /service -name supervise` is
 always going to return nothing because /service should all be symlinks.
 To do what you're trying to do, you could add a -follow to your find
 command.  The only problem there is svc doesn't want a supervise
 directory, it wants supervise's parent directory, a la /service/<whatever>.)

-- 
Drew

Reply via email to