systemd.xml 20 KB

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