rc0(1M)
rc0 - run commands required to enter single-user mode or halt the system
As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.
NAME rc0 - run commands required to enter single-user mode or halt the system SYNOPSIS /etc/rc0 DESCRIPTION This file is executed by an entry in /etc/inittab and is responsible for performing those operations that bring the system down to either the administrative maintenance state, traditionally state s, called the "single-user" state, or to the system halt state in preparation for powering the system down. /etc/rc0 runs files beginning with K in /etc/rc0.d. These files are executed by /bin/sh in ascii sort-sequence order (see FILES below for more information). Each of these files can also check the state of the corresponding chkconfig flag for that function. If the state is on the script goes on to shut down or otherwise stop that function; if the state is off it does not attempt to stop that function on the theory that since that flag is off, it was never started in the first place. (See chkconfig(1M)). The functions performed by the /etc/rc0 command and associated /etc/rc0.d files include: Stop System Services and Daemons Various system services (such as networking or print spooling) are gracefully terminated. When new services are added that should be terminated when the system is shut down, the appropriate files are installed in /etc/rc0.d. Terminate Processes A SIGTERM signal is sent to all running processes by killall(1M); this lets processes stop themselves cleanly. Kill Processes A SIGKILL signal is sent to all remaining processes; no process can resist SIGKILL. At this point the only processes left are those associated with /etc/rc0 and a few privileged system processes. Unmount All Filesystems Only the root filesystem (/) remains mounted. FILES Files in /etc/rc0.d must begin with a K followed by a number and the rest of the filename. Upon entering run level 0 or 6, files beginning with K are executed with an argument of stop . Files in /etc/rc0.d are typically symbolic links to files in /etc/init.d. Files beginning with other characters are ignored. See rc2(1M) for more information. SEE ALSO killall(1M), rc2(1M), shutdown(1M).