mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-02-07 14:52:10 +00:00
8edca0a446
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10156 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
146 lines
4.4 KiB
XML
146 lines
4.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
|
|
<sect1 id="ch-system-sysvinit" role="wrap">
|
|
<?dbhtml filename="sysvinit.html"?>
|
|
|
|
<sect1info condition="script">
|
|
<productname>sysvinit</productname>
|
|
<productnumber>&sysvinit-version;</productnumber>
|
|
<address>&sysvinit-url;</address>
|
|
</sect1info>
|
|
|
|
<title>Sysvinit-&sysvinit-version;</title>
|
|
|
|
<indexterm zone="ch-system-sysvinit">
|
|
<primary sortas="a-Sysvinit">Sysvinit</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title/>
|
|
|
|
<para>The Sysvinit package contains programs for controlling the startup,
|
|
running, and shutdown of the system.</para>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>&sysvinit-ch6-sbu;</seg>
|
|
<seg>&sysvinit-ch6-du;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Sysvinit</title>
|
|
|
|
<para>Since LFS uses Systemd as init system, this package
|
|
is needed for few utils that are not present in other
|
|
packages. Compile the package:</para>
|
|
|
|
<screen><userinput remap="make">make -C src fstab-decode
|
|
make -C src killall5
|
|
make -C src last</userinput></screen>
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
<para>Install the package:</para>
|
|
|
|
<screen><userinput remap="install">cp -v src/{fstab-decode,killall5} /sbin
|
|
ln -sv ../sbin/killall5 /bin/pidof
|
|
cp -v src/last /usr/bin
|
|
ln -sv last /usr/bin/lastb</userinput></screen>
|
|
|
|
<para>Install manual pages for the installed programs:</para>
|
|
|
|
<screen><userinput remap="install">cp -v man/{last,lastb}.1 /usr/share/man/man1
|
|
cp -v man/{fstab-decode,killall5,pidof}.8 /usr/share/man/man8</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 id="contents-sysvinit" role="content">
|
|
<title>Contents of Sysvinit</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed programs</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>fstab-decode, killall5, last,
|
|
lastb (link to last) and pidof
|
|
(link to killall5)</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="fstab-decode">
|
|
<term><command>fstab-decode</command></term>
|
|
<listitem>
|
|
<para>Run a command with fstab-encoded arguments</para>
|
|
<indexterm zone="ch-system-sysvinit fstab-decode">
|
|
<primary sortas="b-fstab-decode">fstab-decode</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="killall5">
|
|
<term><command>killall5</command></term>
|
|
<listitem>
|
|
<para>Sends a signal to all processes, except the processes in its own
|
|
session so it will not kill the shell running the script that called
|
|
it</para>
|
|
<indexterm zone="ch-system-sysvinit killall5">
|
|
<primary sortas="b-killall5">killall5</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="last">
|
|
<term><command>last</command></term>
|
|
<listitem>
|
|
<para>Shows which users last logged in (and out), searching back
|
|
through the <filename>/var/log/wtmp</filename> file; it also shows
|
|
system boots, shutdowns, and run-level changes</para>
|
|
<indexterm zone="ch-system-sysvinit last">
|
|
<primary sortas="b-last">last</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="lastb">
|
|
<term><command>lastb</command></term>
|
|
<listitem>
|
|
<para>Shows the failed login attempts, as logged in
|
|
<filename>/var/log/btmp</filename></para>
|
|
<indexterm zone="ch-system-sysvinit lastb">
|
|
<primary sortas="b-lastb">lastb</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="pidof">
|
|
<term><command>pidof</command></term>
|
|
<listitem>
|
|
<para>Reports the PIDs of the given programs</para>
|
|
<indexterm zone="ch-system-sysvinit pidof">
|
|
<primary sortas="b-pidof">pidof</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|