diff between reboot and init 6 in solaris

Hi All,

Does anyone tell me , is there any difference between solaris "reboot " and init 6 ...bcos in case of reboot for a system ..can i use init 6 for that instead.

Thanks in advance,
J

Yes, reboot is a more aggresive command to use. init 6 is much graceful

Hi Incredible,

I was asked to do a reboot on some of the servers..but i have done init 6 on those machines ....will it be enough.

Yes. init 6 should be enough.

Hey,

Thanks!!

Hi friend, init 6 can be used using the shutdown command too, anyway init 6 is easier and shorter to remember :stuck_out_tongue:
eg: shutdown -i6 -g0 -y

  • use of `init 6` will give the cleanest and orderly reboot (init informs svc.startd of the runlevel change and will move to the appropriate milestone).
  • use of `shutdown -y -g0 -i6 **message**` will invoke init as well as give you grace period and messages to user (shutdown invoked the same as init above).
  • halt,reboot,poweroff will not run any of the shutdown scripts and should be last resort.