When creating a scripts other than the reboot script, following these guidelines to assure the script does not corrupt the operating environment or otherwise disrupt the system. These guidelines enable the use of Solaris Live Upgrade, which creates a new boot environment for installation of the operating environment. 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 operating environment 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 operating environment. 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 30, Solaris Live Upgrade (Overview).