rc.1m (2012 03)

r
rc(1M) rc(1M)
stderr, and thus be captured in a log file. Any console output will be garbled.
When a startup script returns an exit code of
3, /sbin/rc can display a specific message on the
console prior to rebooting the system. This is achieved by creating a text file named
/etc/rc.bootmsg
containing the text to be displayed to the console. Note that
/sbin/rc
deletes this file after displaying the message, so startup scripts need to write this file each time a
specific message is required to be displayed on console prior to reboot.
RETURN VALUE
The return values for startup scripts are as follows:
0 Script exited without error.
1 Script encountered errors.
2 Script was skipped due to overriding control variables from
/etc/rc.config.d
files, or for
other reasons, and did not actually do anything.
3 Script will automatically reboot the system.
4 Script exited without error and started a process in background mode.
>4 For return values greater than
4 the action is same as return value 1, script encountered
errors.
SEE ALSO
init(1M), shutdown(1M), inittab(4), rc.config(4).
HP-UX 11i Version 3: March 2012 3 Hewlett-Packard Company 3