Changeset c6cb3aa for chapter06/sysvinit.xml
- Timestamp:
- 05/17/2004 09:55:01 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 6f461cb
- Parents:
- 01b2724c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/sysvinit.xml
r01b2724c rc6cb3aa 104 104 105 105 106 <sect2 id="contents-sysvinit"><title>Contents of Sysvinit</title> 107 108 <para><emphasis>Installed programs</emphasis>: halt, init, killall5, last, 109 lastb (link to last), mesg, pidof (link to killall5), poweroff (link to halt), 110 reboot (link to halt), runlevel, shutdown, sulogin, telinit (link to init), 111 utmpdump and wall</para> 112 113 </sect2> 114 115 116 <sect2><title>Short descriptions</title> 117 106 <sect2 id="contents-sysvinit" role="content"><title>Contents of Sysvinit</title> 107 108 <segmentedlist> 109 <segtitle>Installed programs</segtitle> 110 <seglistitem><seg>halt, init, killall5, last, lastb (link to last), mesg, pidof (link to 111 killall5), poweroff (link to halt), reboot (link to halt), runlevel, shutdown, sulogin, telinit 112 (link to init), utmpdump and wall</seg></seglistitem> 113 </segmentedlist> 114 115 <variablelist><title>Short descriptions</title> 116 117 <varlistentry> 118 <term id="halt"><command>halt</command></term> 119 <listitem> 118 120 <indexterm zone="ch-system-sysvinit halt"><primary sortas="b-halt">halt</primary></indexterm> 119 <para id="halt"><command>halt</command>normally invokes shutdown with the -h flag,121 <para>normally invokes shutdown with the -h flag, 120 122 except when already in run-level 0, then it tells the kernel to halt the system. 121 123 But first it notes in the file <filename>/var/log/wtmp</filename> that the 122 124 system is being brought down.</para> 123 125 </listitem> 126 </varlistentry> 127 128 <varlistentry> 129 <term id="init"><command>init</command></term> 130 <listitem> 124 131 <indexterm zone="ch-system-sysvinit init"><primary sortas="b-init">init</primary></indexterm> 125 <para id="init"><command>init</command>is the mother of all processes. It reads its132 <para>is the mother of all processes. It reads its 126 133 commands from <filename>/etc/inittab</filename>, which normally tell it which 127 134 scripts to run for which run-level, and how many gettys to spawn.</para> 128 135 </listitem> 136 </varlistentry> 137 138 <varlistentry> 139 <term id="killall5"><command>killall5</command></term> 140 <listitem> 129 141 <indexterm zone="ch-system-sysvinit killall5"><primary sortas="b-killall5">killall5</primary></indexterm> 130 <para id="killall5"><command>killall5</command> sends a signal to all processes, except 131 the processes in its own session -- so it won't kill the shell running the 132 script that called it.</para> 133 142 <para>sends a signal to all processes, except the processes in its own session -- 143 so it won't kill the shell running the script that called it.</para> 144 </listitem> 145 </varlistentry> 146 147 <varlistentry> 148 <term id="last"><command>last</command></term> 149 <listitem> 134 150 <indexterm zone="ch-system-sysvinit last"><primary sortas="b-last">last</primary></indexterm> 135 <para id="last"><command>last</command>shows which users last logged in (and out),151 <para>shows which users last logged in (and out), 136 152 searching back through the file <filename>/var/log/wtmp</filename>. It can 137 153 also show system boots and shutdowns, and run-level changes.</para> 138 154 </listitem> 155 </varlistentry> 156 157 <varlistentry> 158 <term id="lastb"><command>lastb</command></term> 159 <listitem> 139 160 <indexterm zone="ch-system-sysvinit lastb"><primary sortas="b-lastb">lastb</primary></indexterm> 140 <para id="lastb"><command>lastb</command> shows the failed login attempts, as logged 141 in <filename>/var/log/btmp</filename>.</para> 142 161 <para>shows the failed login attempts, as logged in 162 <filename>/var/log/btmp</filename>.</para> 163 </listitem> 164 </varlistentry> 165 166 <varlistentry> 167 <term id="mesg"><command>mesg</command></term> 168 <listitem> 143 169 <indexterm zone="ch-system-sysvinit mesg"><primary sortas="b-mesg">mesg</primary></indexterm> 144 <para id="mesg"><command>mesg</command>controls whether other users can send170 <para>controls whether other users can send 145 171 messages to the current user's terminal.</para> 146 172 </listitem> 173 </varlistentry> 174 175 <varlistentry> 176 <term id="pidof"><command>pidof</command></term> 177 <listitem> 147 178 <indexterm zone="ch-system-sysvinit pidof"><primary sortas="b-pidof">pidof</primary></indexterm> 148 <para id="pidof"><command>pidof</command> reports the PIDs of the given programs.</para> 149 179 <para>reports the PIDs of the given programs.</para> 180 </listitem> 181 </varlistentry> 182 183 <varlistentry> 184 <term id="poweroff"><command>poweroff</command></term> 185 <listitem> 150 186 <indexterm zone="ch-system-sysvinit poweroff"><primary sortas="b-poweroff">poweroff</primary></indexterm> 151 <para id="poweroff"><command>poweroff</command>tells the kernel to halt the system and187 <para>tells the kernel to halt the system and 152 188 switch off the computer. But see halt.</para> 153 189 </listitem> 190 </varlistentry> 191 192 <varlistentry> 193 <term id="reboot"><command>reboot</command></term> 194 <listitem> 154 195 <indexterm zone="ch-system-sysvinit reboot"><primary sortas="b-reboot">reboot</primary></indexterm> 155 <para id="reboot"><command>reboot</command> tells the kernel to reboot the system. 156 But see halt.</para> 157 196 <para>tells the kernel to reboot the system. But see halt.</para> 197 </listitem> 198 </varlistentry> 199 200 <varlistentry> 201 <term id="runlevel"><command>runlevel</command></term> 202 <listitem> 158 203 <indexterm zone="ch-system-sysvinit runlevel"><primary sortas="b-runlevel">runlevel</primary></indexterm> 159 <para id="runlevel"><command>runlevel</command> reports the previous and the current 160 run-level, as noted in the last run-level record in 161 <filename>/var/run/utmp</filename>.</para> 162 204 <para>reports the previous and the current run-level, as noted in the last run-level 205 record in <filename>/var/run/utmp</filename>.</para> 206 </listitem> 207 </varlistentry> 208 209 <varlistentry> 210 <term id="shutdown"><command>shutdown</command></term> 211 <listitem> 163 212 <indexterm zone="ch-system-sysvinit shutdown"><primary sortas="b-shutdown">shutdown</primary></indexterm> 164 <para id="shutdown"><command>shutdown</command>brings the system down in a secure way,213 <para>brings the system down in a secure way, 165 214 signaling all processes and notifying all logged-in users.</para> 166 215 </listitem> 216 </varlistentry> 217 218 <varlistentry> 219 <term id="sulogin"><command>sulogin</command></term> 220 <listitem> 167 221 <indexterm zone="ch-system-sysvinit sulogin"><primary sortas="b-sulogin">sulogin</primary></indexterm> 168 <para id="sulogin"><command>sulogin</command>allows the superuser to log in. It is222 <para>allows the superuser to log in. It is 169 223 normally invoked by init when the system goes into single user mode.</para> 170 224 </listitem> 225 </varlistentry> 226 227 <varlistentry> 228 <term id="telinit"><command>telinit</command></term> 229 <listitem> 171 230 <indexterm zone="ch-system-sysvinit telinit"><primary sortas="b-telinit">telinit</primary></indexterm> 172 <para id="telinit"><command>telinit</command> tells init which run-level to enter.</para> 173 231 <para>tells init which run-level to enter.</para> 232 </listitem> 233 </varlistentry> 234 235 <varlistentry> 236 <term id="utmpdump"><command>utmpdump</command></term> 237 <listitem> 174 238 <indexterm zone="ch-system-sysvinit utmpdump"><primary sortas="b-utmpdump">utmpdump</primary></indexterm> 175 <para id="utmpdump"><command>utmpdump</command> displays the content of the given login 176 file in a friendlier format.</para> 177 239 <para>displays the content of the given login file in a friendlier format.</para> 240 </listitem> 241 </varlistentry> 242 243 <varlistentry> 244 <term id="wall"><command>wall</command></term> 245 <listitem> 178 246 <indexterm zone="ch-system-sysvinit wall"><primary sortas="b-wall">wall</primary></indexterm> 179 <para id="wall"><command>wall</command> writes a message to all logged-in users.</para> 180 181 </sect2> 182 183 247 <para>writes a message to all logged-in users.</para> 248 </listitem> 249 </varlistentry> 250 </variablelist> 251 252 </sect2> 184 253 185 254 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.