Re: zone shutdown



In article <m2y7pwzqst.fsf@xxxxxxxxxxxxxxx>,
Frank Cusack <fcusack@xxxxxxxxxxx> writes:
On 27 Nov 2006 08:33:52 GMT andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel) wrote:
In article <m23b85liip.fsf@xxxxxxxxxxxxxxx>,
Frank Cusack <fcusack@xxxxxxxxxxx> writes:
Does 'zoneadm -z halt' do a clean shutdown (run svc stop methods)?

No.
To do an init 0 in a zone from the global zone, run:
zlogin -S $zone /sbin/init 0

Does init 0 in the global zone do a clean shutdown in non-global zones.

Yes, but if the zone doesn't shutdown within 60 seconds, it
halts it instead.

Do you know if this is user-settable somewhere? (Without modifying
anything that a patch would overwrite.)

No, it's in /lib/svc/method/svc-zones
It should really be picked up as an svc property. SMF wasn't
in Solaris at the time I wrote that part of what was the
init.d/zones script at the time, and whoever moved it under
SMF didn't do it either. You might even argue it should be a
per-zone property.

There's also a ceiling of 500 seconds in the system/zones.xml
manifest for the stop method.

--
Andrew Gabriel
.



Relevant Pages

  • Re: zone shutdown
    ... andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel) writes: ... Frank Cusack writes: ... To do an init 0 in a zone from the global zone, ... Looking at the current Solaris source, Dan seems to have done this now. ...
    (comp.unix.solaris)
  • Re: Solaris OS versions supported on the cool thread series
    ... :>then pkgadd in the global zone won't work becaus it claims a pkgadd ... That gives about 100x more than my solaris 9 installs. ... And Solaris 10 SMF allows a specification of all appropriate ...
    (comp.sys.sun.hardware)