308 Part II . Getting Around in Linux (Com web hosting)

308 Part II . Getting Around in Linux Table 8-7 halt/reboot/poweroff Options Option Function -w Do not actually halt or reboot the system, only write the entry to /var/log/wtmp so it appears the system was halted or rebooted. -d Do not write the record to /var/log/wtmp. -f Force the halt or reboot without first calling shutdown. -i Shut down all network interfaces before doing the halt or reboot. -p Power off the system after halting. -n Do not sync the hard disks with the cache before rebooting or halting the system. This is not advised. Configuring the init process After being started by LILO, the Linux kernel executes the first process, which is init. The init process always has the process ID of 1, as shown below. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.2 1216 520 ? S Jan12 0:04 init [2] All other processes on the system are child processes of init. When init is executed, it gets its configuration from the /etc/inittabfile. Each entry in the /etc/inittab file has the following syntax: id:runlevels:action:process Lines that begin with #symbols are comments. Table 8-8 lists the function of each field in the entry. The possible entries for the action field are shown in Table 8-9. Table 8-8 inittab Entry Fields Field Function id A string of one to four unique characters that identifies an entry in the inittab file. runlevels The list of runlevels for which the action specified in this entry should be taken. action Specifies the action to be taken. process The process to be executed.
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Leave a Reply