Web hosting support - 310 Part II . Getting Around in Linux
310 Part II . Getting Around in Linux Exam Tip The initdefault entry defines the runlevel that the system will boot into. # System initialization. si::sysinit:/etc/rc.d/rc.sysinit These lines run the /etc/rc.d/rc.sysinit script during system initialization. This script is executed before any others, and init will wait until is it completed to move on. l0:0:wait:/etc/rc.d/rc 0 l1:1:wait:/etc/rc.d/rc 1 l2:2:wait:/etc/rc.d/rc 2 l3:3:wait:/etc/rc.d/rc 3 l4:4:wait:/etc/rc.d/rc 4 l5:5:wait:/etc/rc.d/rc 5 l6:6:wait:/etc/rc.d/rc 6 These lines tell initwhich command to run for each runlevel. For example, when the system is changed to runlevel 5, the command /etc/rc.d/rc 5 is executed. The /etc/rc.d/rc script starts the system, and by passing it the parameter of 5, it starts in runlevel 5. initwill also wait until the specified script is completed before continuing. # Things to run in every runlevel. ud::once:/sbin/update This line causes the /sbin/updatecommand to be executed once during system boot for all runlevels. # Trap CTRL-ALT-DELETE ca::ctrlaltdel:/sbin/shutdown -t3 -r now This line causes the system to execute the /sbin/shutdown -t3 -r nowcommand whenever the Ctrl-Alt-Delete key combination is entered. This is useful for trapping the signal and gracefully rebooting the system. pf::powerfail:/sbin/shutdown -f -h +2 Power Failure; System Shutting Down This line causes the system to shut down gracefully should the Uninterruptible Power Supply (UPS) signal that it has lost power. pr:12345:powerokwait:/sbin/shutdown -c Power Restored; Shutdown Cancelled
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.