*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> rc0 (1)              


rc0(1M)								       rc0(1M)

NAME    [Toc]    [Back]

     rc0 - run commands	required to enter single-user mode or halt the system

SYNOPSIS    [Toc]    [Back]


DESCRIPTION    [Toc]    [Back]

     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

     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.

									Page 1

rc0(1M)								       rc0(1M)

FILES    [Toc]    [Back]

     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    [Toc]    [Back]

     killall(1M), rc2(1M), shutdown(1M).

									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
single IRIX switch the system to single-user mode
rc2 IRIX run commands required for multi-user environment
sulogin IRIX access single-user mode
vm86 Linux enter virtual 8086 mode
launch IRIX graphical utility to enter and invoke commands with arguments
halt IRIX halt the system
boot OpenBSD halt or reboot the system
reboot Tru64 Reboot or halt the system
cpu_reboot NetBSD halt or reboot the system
boot FreeBSD halt or reboot the system
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service