Quoth Ole Benner on Thu, Jan 11, 2007 at 04:51:28AM -0800:
> If I have a stop method under SMF that will exit with status
> SMF_EXIT_OK but doesn't actually shutdown all processes under
> contract, then Solaris 10 will hang during shutdown/reboot.
> 
> Is this the right behavior or is it possible to have SMF killing these
> processes after some timeout if they don't disappear by them self?

Do you have a timeout set for your stop method?  After it has expired,
svc.startd should in fact kill the processes with SIGKILL once a second
until they die.  See

  
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/svc/startd/method.c#926

(the actual killing is done at restarter.c:2248 .)

If your processes are unkillable, though, I don't think svc.startd will
give up.  I believe this would be fixed as part of

        6202081 shutdown should have a global timeout


David

Reply via email to