[0a56911] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-sysvinit" role="wrap">
|
---|
| 9 | <?dbhtml filename="sysvinit.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>sysvinit</productname>
|
---|
| 13 | <productnumber>&sysvinit-version;</productnumber>
|
---|
| 14 | <address>&sysvinit-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Sysvinit-&sysvinit-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-sysvinit">
|
---|
| 20 | <primary sortas="a-Sysvinit">Sysvinit</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Sysvinit package contains programs for controlling the startup,
|
---|
| 27 | running, and shutdown of the system.</para>
|
---|
| 28 |
|
---|
| 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
| 32 |
|
---|
| 33 | <seglistitem>
|
---|
| 34 | <seg>&sysvinit-ch6-sbu;</seg>
|
---|
| 35 | <seg>&sysvinit-ch6-du;</seg>
|
---|
| 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Sysvinit</title>
|
---|
| 43 |
|
---|
[8edca0a] | 44 | <para>Since LFS uses Systemd as init system, this package
|
---|
| 45 | is needed for few utils that are not present in other
|
---|
| 46 | packages. Compile the package:</para>
|
---|
[0a56911] | 47 |
|
---|
[8edca0a] | 48 | <screen><userinput remap="make">make -C src fstab-decode
|
---|
| 49 | make -C src killall5
|
---|
| 50 | make -C src last</userinput></screen>
|
---|
[0a56911] | 51 |
|
---|
| 52 | <para>This package does not come with a test suite.</para>
|
---|
| 53 |
|
---|
| 54 | <para>Install the package:</para>
|
---|
| 55 |
|
---|
[8edca0a] | 56 | <screen><userinput remap="install">cp -v src/{fstab-decode,killall5} /sbin
|
---|
| 57 | ln -sv ../sbin/killall5 /bin/pidof
|
---|
| 58 | cp -v src/last /usr/bin
|
---|
| 59 | ln -sv last /usr/bin/lastb</userinput></screen>
|
---|
| 60 |
|
---|
| 61 | <para>Install manual pages for the installed programs:</para>
|
---|
| 62 |
|
---|
| 63 | <screen><userinput remap="install">cp -v man/{last,lastb}.1 /usr/share/man/man1
|
---|
| 64 | cp -v man/{fstab-decode,killall5,pidof}.8 /usr/share/man/man8</userinput></screen>
|
---|
[0a56911] | 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2 id="contents-sysvinit" role="content">
|
---|
| 69 | <title>Contents of Sysvinit</title>
|
---|
| 70 |
|
---|
| 71 | <segmentedlist>
|
---|
| 72 | <segtitle>Installed programs</segtitle>
|
---|
| 73 |
|
---|
| 74 | <seglistitem>
|
---|
| 75 | <seg>fstab-decode, killall5, last,
|
---|
| 76 | lastb (link to last) and pidof
|
---|
| 77 | (link to killall5)</seg>
|
---|
| 78 | </seglistitem>
|
---|
| 79 | </segmentedlist>
|
---|
| 80 |
|
---|
| 81 | <variablelist>
|
---|
| 82 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 83 | <?dbfo list-presentation="list"?>
|
---|
| 84 | <?dbhtml list-presentation="table"?>
|
---|
| 85 |
|
---|
| 86 | <varlistentry id="fstab-decode">
|
---|
| 87 | <term><command>fstab-decode</command></term>
|
---|
| 88 | <listitem>
|
---|
| 89 | <para>Run a command with fstab-encoded arguments</para>
|
---|
| 90 | <indexterm zone="ch-system-sysvinit fstab-decode">
|
---|
| 91 | <primary sortas="b-fstab-decode">fstab-decode</primary>
|
---|
| 92 | </indexterm>
|
---|
| 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="killall5">
|
---|
| 97 | <term><command>killall5</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>Sends a signal to all processes, except the processes in its own
|
---|
| 100 | session so it will not kill the shell running the script that called
|
---|
| 101 | it</para>
|
---|
| 102 | <indexterm zone="ch-system-sysvinit killall5">
|
---|
| 103 | <primary sortas="b-killall5">killall5</primary>
|
---|
| 104 | </indexterm>
|
---|
| 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="last">
|
---|
| 109 | <term><command>last</command></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>Shows which users last logged in (and out), searching back
|
---|
| 112 | through the <filename>/var/log/wtmp</filename> file; it also shows
|
---|
| 113 | system boots, shutdowns, and run-level changes</para>
|
---|
| 114 | <indexterm zone="ch-system-sysvinit last">
|
---|
| 115 | <primary sortas="b-last">last</primary>
|
---|
| 116 | </indexterm>
|
---|
| 117 | </listitem>
|
---|
| 118 | </varlistentry>
|
---|
| 119 |
|
---|
| 120 | <varlistentry id="lastb">
|
---|
| 121 | <term><command>lastb</command></term>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>Shows the failed login attempts, as logged in
|
---|
| 124 | <filename>/var/log/btmp</filename></para>
|
---|
| 125 | <indexterm zone="ch-system-sysvinit lastb">
|
---|
| 126 | <primary sortas="b-lastb">lastb</primary>
|
---|
| 127 | </indexterm>
|
---|
| 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
| 131 | <varlistentry id="pidof">
|
---|
| 132 | <term><command>pidof</command></term>
|
---|
| 133 | <listitem>
|
---|
| 134 | <para>Reports the PIDs of the given programs</para>
|
---|
| 135 | <indexterm zone="ch-system-sysvinit pidof">
|
---|
| 136 | <primary sortas="b-pidof">pidof</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
| 141 | </variablelist>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | </sect1>
|
---|