When creating scripts other than the reboot script, following these guidelines to assure the script does not corrupt the OS or otherwise disrupt the system. These guidelines enable the use of Solaris Live Upgrade, which creates a new boot environment for installation of the OS. The new boot environment can be installed with an archive while the current system is running.
These guidelines are not for reboot scripts that are allowed to run daemons or make other types of modification to the root (/) file system.
Scripts must not affect the currently running system. The currently running OS might not be the one running when the Solaris Flash archive is installed.
Scripts must not start or stop any daemon processes.
Scripts must not depend on the output of commands such as ps, truss, or uname, which are dependent on the OS. These commands report information about the currently running system.
Scripts must not send any signals or otherwise affect any currently running processes.
Scripts can use standard UNIX commands that facilitate shell scripting such as expr, cp, and ls.
For an overview of Solaris Live Upgrade, see Chapter 6, Solaris Live Upgrade (Overview), in Solaris 10 Installation Guide: Solaris Live Upgrade and Upgrade Planning.