Shut Down or Reboot Solaris: A Complete Guide

Managing Solaris System Shutdown and Reboot Procedures
Solaris is predominantly employed as a server operating system. Consequently, ensuring a graceful system shutdown is crucial to prevent potential data loss.
For each application installed on your server, verify the presence of appropriate scripts within the /etc/rc(x).d directory. These scripts facilitate a controlled and orderly service termination.
Shutdown Procedures
Multiple command options are available for initiating a system shutdown. The recommended command, executed with root privileges, is as follows:
shutdown -y -i5 -g0
This command will immediately begin the shutdown process.
Alternatively, the following older command remains functional:
sync;sync;init 5
The poweroff command also provides a means to shut down the system.
Reboot Procedures
If a system reboot is desired instead of a complete shutdown, consider these commands:
shutdown -y -i6 -g0
Or, you can utilize:
sync;sync;init 6
The reboot command offers another straightforward method for restarting the system.
The availability of numerous commands to achieve similar outcomes might appear redundant, yet provides flexibility for system administrators.
Important Note: Always prioritize a graceful shutdown to maintain data integrity and system stability.