Hi,

Yeah, that's about it. Using kmdb I found a "pwait $$" in a legacy RC 
script. The line looked like this:

addpatch .... && /usr/sbin/init 6 && pwait $$

Sad thing is, that's code I wrote. :-( If the addpatch worked, the 
system needs to reboot in an orderly fashion so the changes from the 
patch will take effect; and the rest of the RC script must not execute.

I would have thought that an "init 6" would have eventually killed of 
the shell process... guess not. I've revised my script to simply exit 
early if addpatch worked.

Mike Gerdts wrote, On 10/08/07 13:08:
> On 10/8/07, Jon Aimone <Jon.Aimone at sun.com> wrote:
>   
>> I have a system than appears to hang during shutdown. I can break into
>> the system and poke around with kmdb, but the system appears idle. At
>> least ::cpuinfo only shows sched active. Now I'm off learning to use
>> kmdb to dump SMF state so I can figure out which service is stuck
>> where... help?!
>>     
>
> FWIW, I've noticed that if a transient service is still running its
> start method the system (or zone) will appear to hang when being shut
> down.  I've been able to use ssh sessions or xterms displayed to
> remote displays to diagnose this problem.
>
> Mike
>
>   

-- 
Cheers,
Jon.
{-%]
============================================
If you always do what you've always done,
you'll always get what you've always gotten.
 - Anon.
============================================

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jon.aimone.vcf
Type: text/x-vcard
Size: 280 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20071008/5c41595e/attachment.vcf>

Reply via email to