Alan Coopersmith <alan.coopersmith at sun.com> writes:
> Dick Hoogendijk wrote:
>> Reading this back I find this sounds too harsh. I don't mean to say
>> you don't know what you're talking about. You don't work at sun for
>> nothing, I guess ;-) But I do like to know what happens under the
>> hood. What's the shutdown process for sys-suspend compared to init
>> 5?
> For power off it appears to do:
> /*
> * Send SIGPWR signal to the init process to shut down the system.
> */
> if (kill (1, SIGPWR) == -1)
> uadmin(A_SHUTDOWN, AD_POWEROFF, 0);
>
> I don't see shutdown other than power off in there.
>From man uadmin:
WARNINGS
On x86 systems, shutting down the system by means of uadmin
does not update the boot archive. Avoid using this command
after manual editing of files such as /etc/system or
driver.conf(4).
So I guess, init 5 _is_ safer.
--
Dick Hoogendijk -- PGP/GnuPG key: F86289CE
++ http://nagual.nl/ + Solaris 11 05/07 ++