systemd.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  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. <sect1 id="ch-system-systemd" role="wrap">
  8. <?dbhtml filename="systemd.html"?>
  9. <sect1info condition="script">
  10. <productname>systemd</productname>
  11. <productnumber>&systemd-version;</productnumber>
  12. <address>&systemd-url;</address>
  13. </sect1info>
  14. <title>Systemd-&systemd-version;</title>
  15. <indexterm zone="ch-system-systemd">
  16. <primary sortas="a-Systemd">Systemd</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Systemd package contains programs for controlling the startup,
  21. running, and shutdown of the system.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&systemd-ch6-sbu;</seg>
  27. <seg>&systemd-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Systemd</title>
  33. <para>Prepare Systemd for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr \
  35. --sysconfdir=/etc \
  36. --localstatedir=/var \
  37. --libexecdir=/usr/lib \
  38. --docdir=/usr/share/doc/systemd-&systemd-version; \
  39. --with-rootprefix= \
  40. --with-rootlibdir=/lib \
  41. --enable-split-usr \
  42. --disable-gudev \
  43. --without-python</userinput></screen>
  44. <variablelist>
  45. <title>The meaning of the configure options:</title>
  46. <varlistentry>
  47. <term><parameter>--with-root*</parameter></term>
  48. <listitem>
  49. <para>These switches ensure that core programs and
  50. shared libraries are installed in the subdirectories
  51. of the root partition.</para>
  52. </listitem>
  53. </varlistentry>
  54. <varlistentry>
  55. <term><parameter>--enable-split-usr</parameter></term>
  56. <listitem>
  57. <para>This switch ensures that Systemd will work on
  58. systems where /bin, /lib and /sbin directories are not
  59. symlinks to their /usr counterparts.</para>
  60. </listitem>
  61. </varlistentry>
  62. <varlistentry>
  63. <term><parameter>--disable-gudev --without-python</parameter></term>
  64. <listitem>
  65. <para>These switches disable optional features because
  66. LFS does not provide their dependencies.</para>
  67. </listitem>
  68. </varlistentry>
  69. </variablelist>
  70. <para>Compile the package:</para>
  71. <screen><userinput remap="make">make</userinput></screen>
  72. <para>The package comes with a testsuite, but it doesn't work in
  73. chroot. It needs to be run from a system booted using Systemd.</para>
  74. <para>Install the package:</para>
  75. <screen><userinput remap="install">make install</userinput></screen>
  76. <para>Create the Sysvinit compatibility symlinks, so Systemd is used
  77. as the default init system:</para>
  78. <screen><userinput remap="install">for tool in runlevel reboot shutdown poweroff halt telinit; do
  79. ln -sfv ../bin/systemctl /sbin/$tool
  80. done
  81. ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen>
  82. <para>Remove a reference to a non-existent group:</para>
  83. <screen><userinput remap="install">sed -i "s@0775 root lock@0755 root root@g" /usr/lib/tmpfiles.d/legacy.conf</userinput></screen>
  84. <para>Create the <filename>/etc/machine-id</filename> file needed by
  85. Journald:</para>
  86. <screen><userinput>systemd-machine-id-setup</userinput></screen>
  87. </sect2>
  88. <sect2 id="contents-systemd" role="content">
  89. <title>Contents of Systemd</title>
  90. <segmentedlist>
  91. <segtitle>Installed programs</segtitle>
  92. <segtitle>Installed libraries</segtitle>
  93. <segtitle>Installed directories</segtitle>
  94. <seglistitem>
  95. <seg>halt, hostnamectl, init, journalctl, kernel-install, localectl,
  96. loginctl, poweroff, reboot, runlevel, shutdown, systemctl,
  97. systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls,
  98. systemd-cgtop, systemd-coredumpctl, systemd-delta, systemd-detect-virt,
  99. systemd-inhibit, systemd-machine-id-setup, systemd-notify,
  100. systemd-nspawn, systemd-stdio-bridge, systemd-tmpfiles,
  101. systemd-tty-ask-password-agent, telinit, timedatectl and
  102. udevadm</seg>
  103. <seg>libnss_myhostname.so.2, libsystemd-daemon.so, libsystemd-id128.so,
  104. libsystemd-journal.so, libsystemd-login.so and libudev.so</seg>
  105. <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d, /etc/rpm,
  106. /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
  107. /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd,
  108. /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d, /usr/lib/sysctl.d,
  109. /usr/lib/systemd, /usr/lib/tmpfiles.d, /usr/share/doc/systemd-&systemd-version;,
  110. /usr/share/systemd, /var/lib/systemd and /var/log/journal</seg>
  111. </seglistitem>
  112. </segmentedlist>
  113. <variablelist>
  114. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  115. <?dbfo list-presentation="list"?>
  116. <?dbhtml list-presentation="table"?>
  117. <varlistentry id="halt">
  118. <term><command>halt</command></term>
  119. <listitem>
  120. <para>Normally invokes <command>shutdown</command> with the
  121. <parameter>-h</parameter> option, except when already in run-level 0,
  122. then it tells the kernel to halt the system; it notes in the
  123. file <filename>/var/log/wtmp</filename> that the system is being
  124. brought down.</para>
  125. <indexterm zone="ch-system-systemd halt">
  126. <primary sortas="b-halt">halt</primary>
  127. </indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="hostnamectl">
  131. <term><command>hostnamectl</command></term>
  132. <listitem>
  133. <para>used to query and change the system hostname and related
  134. settings.</para>
  135. <indexterm zone="ch-system-systemd hostnamectl">
  136. <primary sortas="b-hostnamectl">hostnamectl</primary>
  137. </indexterm>
  138. </listitem>
  139. </varlistentry>
  140. <varlistentry id="init">
  141. <term><command>init</command></term>
  142. <listitem>
  143. <para>The first process to be started when the kernel has initialized
  144. the hardware which takes over the boot process and starts all the
  145. proceses it is instructed to.</para>
  146. <indexterm zone="ch-system-systemd init">
  147. <primary sortas="b-init">init</primary>
  148. </indexterm>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="journalctl">
  152. <term><command>journalctl</command></term>
  153. <listitem>
  154. <para>used to query the contents of the Systemd Journal.</para>
  155. <indexterm zone="ch-system-systemd journalctl">
  156. <primary sortas="b-journalctl">journalctl</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="kernel-install">
  161. <term><command>kernel-install</command></term>
  162. <listitem>
  163. <para>used to add and remove kernel and initramfs images to and
  164. from /boot.</para>
  165. <indexterm zone="ch-system-systemd kernel-install">
  166. <primary sortas="b-kernel-install">kernel-install</primary>
  167. </indexterm>
  168. </listitem>
  169. </varlistentry>
  170. <varlistentry id="localectl">
  171. <term><command>localectl</command></term>
  172. <listitem>
  173. <para>used to query and change the system locale and keyboard layout
  174. settings.</para>
  175. <indexterm zone="ch-system-systemd localectl">
  176. <primary sortas="b-localectl">localectl</primary>
  177. </indexterm>
  178. </listitem>
  179. </varlistentry>
  180. <varlistentry id="loginctl">
  181. <term><command>loginctl</command></term>
  182. <listitem>
  183. <para>used to introspect and control the state of the Systemd Login
  184. Manager.</para>
  185. <indexterm zone="ch-system-systemd loginctl">
  186. <primary sortas="b-loginctl">loginctl</primary>
  187. </indexterm>
  188. </listitem>
  189. </varlistentry>
  190. <varlistentry id="poweroff">
  191. <term><command>poweroff</command></term>
  192. <listitem>
  193. <para>Tells the kernel to halt the system and switch off the computer
  194. (see <command>halt</command>).</para>
  195. <indexterm zone="ch-system-systemd poweroff">
  196. <primary sortas="b-poweroff">poweroff</primary>
  197. </indexterm>
  198. </listitem>
  199. </varlistentry>
  200. <varlistentry id="reboot">
  201. <term><command>reboot</command></term>
  202. <listitem>
  203. <para>Tells the kernel to reboot the system (see
  204. <command>halt</command>).</para>
  205. <indexterm zone="ch-system-systemd reboot">
  206. <primary sortas="b-reboot">reboot</primary>
  207. </indexterm>
  208. </listitem>
  209. </varlistentry>
  210. <varlistentry id="runlevel">
  211. <term><command>runlevel</command></term>
  212. <listitem>
  213. <para>Reports the previous and the current run-level, as noted in the
  214. last run-level record in <filename>/var/run/utmp</filename>.</para>
  215. <indexterm zone="ch-system-systemd runlevel">
  216. <primary sortas="b-runlevel">runlevel</primary>
  217. </indexterm>
  218. </listitem>
  219. </varlistentry>
  220. <varlistentry id="shutdown">
  221. <term><command>shutdown</command></term>
  222. <listitem>
  223. <para>Brings the system down in a secure way, signaling all processes
  224. and notifying all logged-in users.</para>
  225. <indexterm zone="ch-system-systemd shutdown">
  226. <primary sortas="b-shutdown">shutdown</primary>
  227. </indexterm>
  228. </listitem>
  229. </varlistentry>
  230. <varlistentry id="systemctl">
  231. <term><command>systemctl</command></term>
  232. <listitem>
  233. <para>used to introspect and control the state of the Systemd system and
  234. service manager.</para>
  235. <indexterm zone="ch-system-systemd systemctl">
  236. <primary sortas="b-systemctl">systemctl</primary>
  237. </indexterm>
  238. </listitem>
  239. </varlistentry>
  240. <varlistentry id="systemd-analyze">
  241. <term><command>systemd-analyze</command></term>
  242. <listitem>
  243. <para>used to determine system boot-up performance of the current boot.
  244. </para>
  245. <indexterm zone="ch-system-systemd systemd-analyze">
  246. <primary sortas="b-systemd-analyze">systemd-analyze</primary>
  247. </indexterm>
  248. </listitem>
  249. </varlistentry>
  250. <varlistentry id="systemd-ask-password">
  251. <term><command>systemd-ask-password</command></term>
  252. <listitem>
  253. <para>used to query a system password or passphrase from the user, using a
  254. question message specified on the command line.</para>
  255. <indexterm zone="ch-system-systemd systemd-ask-password">
  256. <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
  257. </indexterm>
  258. </listitem>
  259. </varlistentry>
  260. <varlistentry id="systemd-cat">
  261. <term><command>systemd-cat</command></term>
  262. <listitem>
  263. <para>used to connect STDOUT and STDERR of a process with the Journal.
  264. </para>
  265. <indexterm zone="ch-system-systemd systemd-cat">
  266. <primary sortas="b-systemd-cat">systemd-cat</primary>
  267. </indexterm>
  268. </listitem>
  269. </varlistentry>
  270. <varlistentry id="systemd-cgls">
  271. <term><command>systemd-cgls</command></term>
  272. <listitem>
  273. <para>recursively shows the contents of the selected Linux control group
  274. hierarchy in a tree.</para>
  275. <indexterm zone="ch-system-systemd systemd-cgls">
  276. <primary sortas="b-systemd-cgls">systemd-cgls</primary>
  277. </indexterm>
  278. </listitem>
  279. </varlistentry>
  280. <varlistentry id="systemd-cgtop">
  281. <term><command>systemd-cgtop</command></term>
  282. <listitem>
  283. <para>shows the top control groups of the local Linux control group hierarchy,
  284. ordered by their CPU, memory and disk I/O load.</para>
  285. <indexterm zone="ch-system-systemd systemd-cgtop">
  286. <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
  287. </indexterm>
  288. </listitem>
  289. </varlistentry>
  290. <varlistentry id="systemd-coredumpctl">
  291. <term><command>systemd-coredumpctl</command></term>
  292. <listitem>
  293. <para>used to retrieve coredumps from the Systemd Journal</para>
  294. <indexterm zone="ch-system-systemd systemd-coredumpctl">
  295. <primary sortas="b-systemd-coredumpctl">systemd-coredumpctl</primary>
  296. </indexterm>
  297. </listitem>
  298. </varlistentry>
  299. <varlistentry id="systemd-delta">
  300. <term><command>systemd-delta</command></term>
  301. <listitem>
  302. <para>used to identify and compare configuration files in
  303. <filename class="directory">/etc</filename> that override default
  304. counterparts in <filename class="directory">/usr</filename>.</para>
  305. <indexterm zone="ch-system-systemd systemd-delta">
  306. <primary sortas="b-systemd-delta">systemd-delta</primary>
  307. </indexterm>
  308. </listitem>
  309. </varlistentry>
  310. <varlistentry id="systemd-detect-virt">
  311. <term><command>systemd-detect-virt</command></term>
  312. <listitem>
  313. <para>detects execution in a virtualized environment.</para>
  314. <indexterm zone="ch-system-systemd systemd-detect-virt">
  315. <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
  316. </indexterm>
  317. </listitem>
  318. </varlistentry>
  319. <varlistentry id="systemd-inhibit">
  320. <term><command>systemd-inhibit</command></term>
  321. <listitem>
  322. <para>used to execute a program with a shutdown, sleep or idle inhibitor lock
  323. taken.</para>
  324. <indexterm zone="ch-system-systemd systemd-inhibit">
  325. <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
  326. </indexterm>
  327. </listitem>
  328. </varlistentry>
  329. <varlistentry id="systemd-machine-id-setup">
  330. <term><command>systemd-machine-id-setup</command></term>
  331. <listitem>
  332. <para>used by system installer tools to initialize the machine ID stored in
  333. <filename>/etc/machine-id</filename> at install time with a randomly
  334. generated ID.</para>
  335. <indexterm zone="ch-system-systemd systemd-machine-id-setup">
  336. <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
  337. </indexterm>
  338. </listitem>
  339. </varlistentry>
  340. <varlistentry id="systemd-notify">
  341. <term><command>systemd-notify</command></term>
  342. <listitem>
  343. <para>used by daemon scripts to notify the init system about status changes.
  344. </para>
  345. <indexterm zone="ch-system-systemd systemd-notify">
  346. <primary sortas="b-systemd-notify">systemd-notify</primary>
  347. </indexterm>
  348. </listitem>
  349. </varlistentry>
  350. <varlistentry id="systemd-nspawn">
  351. <term><command>systemd-nspawn</command></term>
  352. <listitem>
  353. <para>used to run a command or OS in a light-weight namespace container.</para>
  354. <indexterm zone="ch-system-systemd systemd-nspawn">
  355. <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
  356. </indexterm>
  357. </listitem>
  358. </varlistentry>
  359. <!-- <varlistentry id="systemd-stdio-bridge">
  360. <term><command>systemd-stdio-bridge</command></term>
  361. <listitem>
  362. <para>To be completed</para>
  363. <indexterm zone="ch-system-systemd systemd-stdio-bridge">
  364. <primary sortas="b-systemd-stdio-bridge">systemd-stdio-bridge</primary>
  365. </indexterm>
  366. </listitem>
  367. </varlistentry> -->
  368. <varlistentry id="systemd-tmpfiles">
  369. <term><command>systemd-tmpfiles</command></term>
  370. <listitem>
  371. <para>creates, deletes and cleans up volatile and temporary files and directories,
  372. based on the configuration file format and location specified in
  373. <filename class="directory">tmpfiles.d</filename> directories.</para>
  374. <indexterm zone="ch-system-systemd systemd-tmpfiles">
  375. <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
  376. </indexterm>
  377. </listitem>
  378. </varlistentry>
  379. <varlistentry id="systemd-tty-ask-password-agent">
  380. <term><command>systemd-tty-ask-password-agent</command></term>
  381. <listitem>
  382. <para>used to list or process pending Systemd password requests</para>
  383. <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
  384. <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
  385. </indexterm>
  386. </listitem>
  387. </varlistentry>
  388. <varlistentry id="telinit">
  389. <term><command>telinit</command></term>
  390. <listitem>
  391. <para>Tells <command>init</command> which run-level to change to.</para>
  392. <indexterm zone="ch-system-systemd telinit">
  393. <primary sortas="b-telinit">telinit</primary>
  394. </indexterm>
  395. </listitem>
  396. </varlistentry>
  397. <varlistentry id="timedatectl">
  398. <term><command>timedatectl</command></term>
  399. <listitem>
  400. <para>used to query and change the system clock and its settings.
  401. </para>
  402. <indexterm zone="ch-system-systemd timedatectl">
  403. <primary sortas="b-timedatectl">timedatectl</primary>
  404. </indexterm>
  405. </listitem>
  406. </varlistentry>
  407. <varlistentry id="udevadm">
  408. <term><command>udevadm</command></term>
  409. <listitem>
  410. <para>Generic Udev administration tool: controls the udevd daemon,
  411. provides info from the Udev database, monitors uevents, waits for
  412. uevents to finish, tests Udev configuration, and triggers uevents
  413. for a given device.</para>
  414. <indexterm zone="ch-system-systemd udevadm">
  415. <primary sortas="b-udevadm">udevadm</primary>
  416. </indexterm>
  417. </listitem>
  418. </varlistentry>
  419. <varlistentry id="libsystemd-daemon">
  420. <term><filename class="libraryfile">libsystemd-daemon</filename></term>
  421. <listitem>
  422. <para>Systemd Daemon utility library.</para>
  423. <indexterm zone="ch-system-systemd libsystemd-daemon">
  424. <primary sortas="c-libsystemd-daemon">libsystemd-daemon</primary>
  425. </indexterm>
  426. </listitem>
  427. </varlistentry>
  428. <varlistentry id="libsystemd-id128">
  429. <term><filename class="libraryfile">libsystemd-id128</filename></term>
  430. <listitem>
  431. <para>Systemd 128 Bit ID utility library.</para>
  432. <indexterm zone="ch-system-systemd libsystemd-id128">
  433. <primary sortas="c-libsystemd-id128">libsystemd-id128</primary>
  434. </indexterm>
  435. </listitem>
  436. </varlistentry>
  437. <varlistentry id="libsystemd-journal">
  438. <term><filename class="libraryfile">libsystemd-journal</filename></term>
  439. <listitem>
  440. <para>Systemd Journal utility library.</para>
  441. <indexterm zone="ch-system-systemd libsystemd-journal">
  442. <primary sortas="c-libsystemd-journal">libsystemd-journal</primary>
  443. </indexterm>
  444. </listitem>
  445. </varlistentry>
  446. <varlistentry id="libsystemd-login">
  447. <term><filename class="libraryfile">libsystemd-login</filename></term>
  448. <listitem>
  449. <para>Systemd Login utility library.</para>
  450. <indexterm zone="ch-system-systemd libsystemd-login">
  451. <primary sortas="c-libsystemd-login">libsystemd-login</primary>
  452. </indexterm>
  453. </listitem>
  454. </varlistentry>
  455. <varlistentry id="libudev">
  456. <term><filename class="libraryfile">libudev</filename></term>
  457. <listitem>
  458. <para>A library to access Udev device information.</para>
  459. <indexterm zone="ch-system-systemd libudev">
  460. <primary sortas="c-libudev">libudev</primary>
  461. </indexterm>
  462. </listitem>
  463. </varlistentry>
  464. </variablelist>
  465. </sect2>
  466. </sect1>