systemd.xml 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  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" revision="systemd">
  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>First, apply a patch to fix issues with systemd-networkd on Linux 5.2+
  34. kernels, as well as with AMD Ryzen CPUs:</para>
  35. <screen><userinput remap="pre">patch -Np1 -i ../systemd-&systemd-version;-networkd_and_rdrand_fixes-1.patch</userinput></screen>
  36. <para>Create a symlink to work around missing xsltproc:</para>
  37. <screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen>
  38. <para>Because we have not yet installed the final version of Util-Linux,
  39. create links to the libraries in the approprite location:</para>
  40. <screen><userinput remap="pre">for file in /tools/lib/lib{blkid,mount,uuid}.so*; do
  41. ln -sf $file /usr/lib/
  42. done</userinput></screen>
  43. <para>Set up the man pages:</para>
  44. <screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen>
  45. <para>Remove tests that cannot be built in chroot:</para>
  46. <screen><userinput remap="pre">sed '177,$ d' -i src/resolve/meson.build</userinput></screen>
  47. <para>Remove an unneeded group,
  48. <systemitem class="groupname">render</systemitem>, from the default udev
  49. rules:</para>
  50. <screen><userinput remap="pre">sed -i 's/GROUP="render", //' rules/50-udev-default.rules.in</userinput></screen>
  51. <!-- EDITORS NOTE: At the next systemd release, see if the CFLAGS can be removed. -->
  52. <para>Prepare systemd for compilation:</para>
  53. <screen><userinput remap="configure">mkdir -p build
  54. cd build
  55. PKG_CONFIG_PATH="/usr/lib/pkgconfig:/tools/lib/pkgconfig" \
  56. LANG=en_US.UTF-8 \
  57. CFLAGS+="-Wno-format-overflow" \
  58. meson --prefix=/usr \
  59. --sysconfdir=/etc \
  60. --localstatedir=/var \
  61. -Dblkid=true \
  62. -Dbuildtype=release \
  63. -Ddefault-dnssec=no \
  64. -Dfirstboot=false \
  65. -Dinstall-tests=false \
  66. -Dkmod-path=/bin/kmod \
  67. -Dldconfig=false \
  68. -Dmount-path=/bin/mount \
  69. -Drootprefix= \
  70. -Drootlibdir=/lib \
  71. -Dsplit-usr=true \
  72. -Dsulogin-path=/sbin/sulogin \
  73. -Dsysusers=false \
  74. -Dumount-path=/bin/umount \
  75. -Db_lto=false \
  76. -Drpmmacrosdir=no \
  77. ..</userinput></screen>
  78. <variablelist>
  79. <title>The meaning of the meson options:</title>
  80. <varlistentry>
  81. <term><parameter>-D*-path=*</parameter></term>
  82. <listitem>
  83. <para>These switches provide location of binaries needed by
  84. systemd at runtime that have not yet been installed, or who's
  85. pkgconfig files are currently only in
  86. <filename>/tools/lib/pkgconfig</filename>.</para>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry>
  90. <term><parameter>-Ddefault-dnssec=no</parameter></term>
  91. <listitem>
  92. <para>This switch turns off the experimental DNSSEC support.</para>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry>
  96. <term><parameter>-Dfirstboot=false</parameter></term>
  97. <listitem>
  98. <para>This switch prevents installation of systemd
  99. services responsible for setting up the system for
  100. the first time. They are not useful for LFS because
  101. everything is done manually.</para>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry>
  105. <term><parameter>-Dinstall-tests=false</parameter></term>
  106. <listitem>
  107. <para>This switch prevents installation of the compiled tests.</para>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry>
  111. <term><parameter>-Dldconfig=false</parameter></term>
  112. <listitem>
  113. <para>This switch prevents installation of a systemd unit that runs
  114. <command>ldconfig</command> at boot, which is not useful for source
  115. distributions such as LFS and makes the boot time longer. Remove it
  116. if the described feature is desired.</para>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry>
  120. <term><parameter>-Droot*</parameter></term>
  121. <listitem>
  122. <para>These switches ensure that core programs and
  123. shared libraries are installed in the subdirectories
  124. of the root partition.</para>
  125. </listitem>
  126. </varlistentry>
  127. <varlistentry>
  128. <term><parameter>-Dsplit-usr=true</parameter></term>
  129. <listitem>
  130. <para>This switch ensures that systemd will work on
  131. systems where /bin, /lib and /sbin directories are not
  132. symlinks to their /usr counterparts.</para>
  133. </listitem>
  134. </varlistentry>
  135. <varlistentry>
  136. <term><parameter>-Dsysusers=false</parameter></term>
  137. <listitem>
  138. <para>This switch prevents installation of systemd
  139. services responsible for setting up the
  140. <filename>/etc/group</filename> and
  141. <filename>/etc/passwd</filename> files. Both files
  142. were created earlier in this chapter.</para>
  143. </listitem>
  144. </varlistentry>
  145. <varlistentry>
  146. <term><parameter>-Drpmmacrosdir=no</parameter></term>
  147. <listitem>
  148. <para>This switch disables installation of RPM Macros
  149. for use with systemd because LFS does not support RPM.</para>
  150. </listitem>
  151. </varlistentry>
  152. </variablelist>
  153. <para>Compile the package:</para>
  154. <screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>
  155. <!--
  156. <para>To test the package, execute the following command:</para>
  157. <screen><userinput remap="test">LANG=en_US.UTF-8 ninja test</userinput></screen>
  158. -->
  159. <para>Install the package:</para>
  160. <screen><userinput remap="install">LANG=en_US.UTF-8 ninja install</userinput></screen>
  161. <para>Remove an unnecessary symbolic link:</para>
  162. <screen><userinput remap="install">rm -f /usr/bin/xsltproc</userinput></screen>
  163. <para>Create the <filename>/etc/machine-id</filename> file needed by
  164. <command>systemd-journald</command>:</para>
  165. <screen><userinput remap="adjust">systemd-machine-id-setup</userinput></screen>
  166. <para>Remove symbolic links to Util-Linux libraries:</para>
  167. <screen><userinput remap="adjust">rm -fv /usr/lib/lib{blkid,uuid,mount}.so*</userinput></screen>
  168. <para>Prevent systemd from creating <filename>/run/nologin</filename>
  169. to allow unprivileged user logins without
  170. <application>systemd-logind</application>:</para>
  171. <screen><userinput remap="adjust">rm -f /usr/lib/tmpfiles.d/systemd-nologin.conf</userinput></screen>
  172. </sect2>
  173. <!-- ====== 32-bit ===== -->
  174. <sect2 arch="ml_32,ml_all" role="installation">
  175. <title>Installation of systemd - 32-bit</title>
  176. <para>If still in the build directory, step out:</para>
  177. <screen><userinput remap="pre">cd ..</userinput></screen>
  178. <para>Clean previous build:</para>
  179. <screen><userinput remap="pre">rm -rf build</userinput></screen>
  180. <para>Create a symlink to work around missing xsltproc:</para>
  181. <screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen>
  182. <para>Because we have not yet installed the final version of Util-Linux,
  183. create links to the libraries in the approprite location:</para>
  184. <screen><userinput remap="pre">for file in /tools/lib32/lib{blkid,mount,uuid}*; do
  185. ln -sf $file /usr/lib32/
  186. done</userinput></screen>
  187. <para>Set up the man pages:</para>
  188. <screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen>
  189. <para>Prepare systemd for compilation:</para>
  190. <screen><userinput remap="configure">cd build
  191. PKG_CONFIG_PATH="/usr/lib32/pkgconfig:/tools/lib32/pkgconfig" \
  192. CC="gcc -m32 -march=i686" \
  193. CXX="g++ -m32 -march=i686" \
  194. LANG=en_US.UTF-8 \
  195. meson --prefix=/usr \
  196. --sysconfdir=/etc \
  197. --localstatedir=/var \
  198. -Dblkid=true \
  199. -Dbuildtype=release \
  200. -Ddefault-dnssec=no \
  201. -Dfirstboot=false \
  202. -Dinstall-tests=false \
  203. -Dkill-path=/bin/kill \
  204. -Dkmod-path=/bin/kmod \
  205. -Dldconfig=false \
  206. -Dmount-path=/bin/mount \
  207. -Drootprefix= \
  208. -Drootlibdir=/usr/lib32 \
  209. -Dsplit-usr=true \
  210. -Dsulogin-path=/sbin/sulogin \
  211. -Dsysusers=false \
  212. -Dumount-path=/bin/umount \
  213. -Db_lto=false \
  214. ..</userinput></screen>
  215. <para>Compile the package:</para>
  216. <screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>
  217. <para>Install the package:</para>
  218. <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
  219. cp -Rv DESTDIR/usr/lib32/* /usr/lib32
  220. rm -rf DESTDIR
  221. rm -f /usr/bin/xsltproc</userinput></screen>
  222. </sect2>
  223. <!-- ====== x32-bit ===== -->
  224. <sect2 arch="ml_x32,ml_all" role="installation">
  225. <title>Installation of systemd - x32-bit</title>
  226. <para>If still in the build directory, step out:</para>
  227. <screen><userinput remap="pre">cd ..</userinput></screen>
  228. <para>Clean previous build:</para>
  229. <screen><userinput remap="pre">rm -rf build</userinput></screen>
  230. <para>Create a symlink to work around missing xsltproc:</para>
  231. <screen><userinput remap="pre">ln -sf /tools/bin/true /usr/bin/xsltproc</userinput></screen>
  232. <para>Because we have not yet installed the final version of Util-Linux,
  233. create links to the libraries in the approprite location:</para>
  234. <screen><userinput remap="pre">for file in /tools/libx32/lib{blkid,mount,uuid}*; do
  235. ln -sf $file /usr/libx32/
  236. done</userinput></screen>
  237. <para>Set up the man pages:</para>
  238. <screen><userinput remap="pre">tar -xf ../systemd-man-pages-&systemd-version;.tar.xz</userinput></screen>
  239. <para>Fix an issue on x32:</para>
  240. <screen><userinput remap="pre">sed '/log_debug/s@PRI_TIMEX@PRIi64@' -i src/timesync/timesyncd-manager.c
  241. sed '/long drift_freq;/s@long @int64_t @' -i src/timesync/timesyncd-manager.h</userinput></screen>
  242. <para>Prepare systemd for compilation:</para>
  243. <screen><userinput remap="configure">cd build
  244. PKG_CONFIG_PATH="/tools/libx32/pkgconfig:/usr/libx32/pkgconfig" \
  245. CC="gcc -mx32" \
  246. CXX="g++ -mx32" \
  247. CFLAGS+="-Wno-error=shift-overflow" \
  248. CXXFLAGS+="-Wno-error=shift-overflow" \
  249. LANG=en_US.UTF-8 \
  250. meson --prefix=/usr \
  251. --sysconfdir=/etc \
  252. --localstatedir=/var \
  253. -Dblkid=true \
  254. -Dbuildtype=release \
  255. -Ddefault-dnssec=no \
  256. -Dfirstboot=false \
  257. -Dinstall-tests=false \
  258. -Dkill-path=/bin/kill \
  259. -Dkmod-path=/bin/kmod \
  260. -Dldconfig=false \
  261. -Dmount-path=/bin/mount \
  262. -Drootprefix= \
  263. -Drootlibdir=/usr/libx32 \
  264. -Dsplit-usr=true \
  265. -Dsulogin-path=/sbin/sulogin \
  266. -Dsysusers=false \
  267. -Dumount-path=/bin/umount \
  268. -Db_lto=false \
  269. ..</userinput></screen>
  270. <para>Compile the package:</para>
  271. <screen><userinput remap="make">LANG=en_US.UTF-8 ninja</userinput></screen>
  272. <para>Install the package:</para>
  273. <screen><userinput remap="install">LANG=en_US.UTF-8 DESTDIR=$PWD/DESTDIR ninja install
  274. cp -Rv DESTDIR/usr/libx32/* /usr/libx32
  275. rm -rf DESTDIR
  276. rm -f /usr/bin/xsltproc</userinput></screen>
  277. </sect2>
  278. <sect2 id="contents-systemd" role="content">
  279. <title>Contents of systemd</title>
  280. <segmentedlist>
  281. <segtitle>Installed programs</segtitle>
  282. <segtitle>Installed libraries</segtitle>
  283. <segtitle>Installed directories</segtitle>
  284. <seglistitem>
  285. <seg>bootctl, busctl, coredumpctl, halt (symlink to systemctl),
  286. hostnamectl, init, journalctl, kernel-install, localectl, loginctl,
  287. machinectl, networkctl, portablectl, poweroff (symlink to
  288. systemctl), reboot (symlink to systemctl), resolvconf (symlink to
  289. resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown
  290. (symlink to systemctl), systemctl, systemd-analyze,
  291. systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop,
  292. systemd-delta, systemd-detect-virt, systemd-escape, systemd-hwdb,
  293. systemd-id128, systemd-inhibit, systemd-machine-id-setup,
  294. systemd-mount, systemd-notify, systemd-nspawn, systemd-path,
  295. systemd-resolve (symlink to resolvectl), systemd-run,
  296. systemd-socket-activate, systemd-stdio-bridge, systemd-tmpfiles,
  297. systemd-tty-ask-password-agent, systemd-umount (symlink to
  298. systemd-mount), telinit (symlink to systemctl), timedatectl, and
  299. udevadm</seg>
  300. <seg>libnss_myhostname.so.2, libnss_mymachines.so.2,
  301. libnss_resolve.so.2, libnss_systemd.so.2,
  302. libsystemd.so, libsystemd-shared-&systemd-version;.so (in /lib/systemd),
  303. and libudev.so</seg>
  304. <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
  305. /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
  306. /etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd,
  307. /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d,
  308. /usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/tmpfiles.d,
  309. /usr/share/doc/systemd-&systemd-version;, /usr/share/factory,
  310. /usr/share/systemd, /var/lib/systemd, and /var/log/journal</seg>
  311. </seglistitem>
  312. </segmentedlist>
  313. <variablelist>
  314. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  315. <?dbfo list-presentation="list"?>
  316. <?dbhtml list-presentation="table"?>
  317. <varlistentry id="bootctl">
  318. <term><command>bootctl</command></term>
  319. <listitem>
  320. <para>Used to query the firmware and boot manager settings</para>
  321. <indexterm zone="ch-system-systemd bootctl">
  322. <primary sortas="b-bootctl">bootctl</primary>
  323. </indexterm>
  324. </listitem>
  325. </varlistentry>
  326. <varlistentry id="busctl">
  327. <term><command>busctl</command></term>
  328. <listitem>
  329. <para>Used to introspect and monitor the D-Bus bus</para>
  330. <indexterm zone="ch-system-systemd busctl">
  331. <primary sortas="b-busctl">busctl</primary>
  332. </indexterm>
  333. </listitem>
  334. </varlistentry>
  335. <varlistentry id="coredumpctl">
  336. <term><command>coredumpctl</command></term>
  337. <listitem>
  338. <para>Used to retrieve coredumps from the systemd journal</para>
  339. <indexterm zone="ch-system-systemd coredumpctl">
  340. <primary sortas="b-coredumpctl">coredumpctl</primary>
  341. </indexterm>
  342. </listitem>
  343. </varlistentry>
  344. <varlistentry id="halt">
  345. <term><command>halt</command></term>
  346. <listitem>
  347. <para>Normally invokes <command>shutdown</command> with the
  348. <parameter>-h</parameter> option, except when already in run-level 0,
  349. then it tells the kernel to halt the system; it notes in the
  350. file <filename>/var/log/wtmp</filename> that the system is being
  351. brought down</para>
  352. <indexterm zone="ch-system-systemd halt">
  353. <primary sortas="b-halt">halt</primary>
  354. </indexterm>
  355. </listitem>
  356. </varlistentry>
  357. <varlistentry id="hostnamectl">
  358. <term><command>hostnamectl</command></term>
  359. <listitem>
  360. <para>Used to query and change the system hostname and related
  361. settings</para>
  362. <indexterm zone="ch-system-systemd hostnamectl">
  363. <primary sortas="b-hostnamectl">hostnamectl</primary>
  364. </indexterm>
  365. </listitem>
  366. </varlistentry>
  367. <varlistentry id="init">
  368. <term><command>init</command></term>
  369. <listitem>
  370. <para>The first process to be started when the kernel has initialized
  371. the hardware which takes over the boot process and starts all
  372. processes according to its configuration files</para>
  373. <indexterm zone="ch-system-systemd init">
  374. <primary sortas="b-init">init</primary>
  375. </indexterm>
  376. </listitem>
  377. </varlistentry>
  378. <varlistentry id="journalctl">
  379. <term><command>journalctl</command></term>
  380. <listitem>
  381. <para>Used to query the contents of the systemd journal</para>
  382. <indexterm zone="ch-system-systemd journalctl">
  383. <primary sortas="b-journalctl">journalctl</primary>
  384. </indexterm>
  385. </listitem>
  386. </varlistentry>
  387. <varlistentry id="kernel-install">
  388. <term><command>kernel-install</command></term>
  389. <listitem>
  390. <para>Used to add and remove kernel and initramfs images to and
  391. from /boot</para>
  392. <indexterm zone="ch-system-systemd kernel-install">
  393. <primary sortas="b-kernel-install">kernel-install</primary>
  394. </indexterm>
  395. </listitem>
  396. </varlistentry>
  397. <varlistentry id="localectl">
  398. <term><command>localectl</command></term>
  399. <listitem>
  400. <para>Used to query and change the system locale and keyboard layout
  401. settings</para>
  402. <indexterm zone="ch-system-systemd localectl">
  403. <primary sortas="b-localectl">localectl</primary>
  404. </indexterm>
  405. </listitem>
  406. </varlistentry>
  407. <varlistentry id="loginctl">
  408. <term><command>loginctl</command></term>
  409. <listitem>
  410. <para>Used to introspect and control the state of the systemd Login
  411. Manager</para>
  412. <indexterm zone="ch-system-systemd loginctl">
  413. <primary sortas="b-loginctl">loginctl</primary>
  414. </indexterm>
  415. </listitem>
  416. </varlistentry>
  417. <varlistentry id="machinectl">
  418. <term><command>machinectl</command></term>
  419. <listitem>
  420. <para>Used to introspect and control the state of the systemd Virtual
  421. Machine and Container Registration Manager</para>
  422. <indexterm zone="ch-system-systemd machinectl">
  423. <primary sortas="b-machinectl">machinectl</primary>
  424. </indexterm>
  425. </listitem>
  426. </varlistentry>
  427. <varlistentry id="networkctl">
  428. <term><command>networkctl</command></term>
  429. <listitem>
  430. <para>Used to introspect the state of the network links as seen by
  431. systemd-networkd</para>
  432. <indexterm zone="ch-system-systemd networkctl">
  433. <primary sortas="b-networkctl">networkctl</primary>
  434. </indexterm>
  435. </listitem>
  436. </varlistentry>
  437. <varlistentry id="portablectl">
  438. <term><command>portablectl</command></term>
  439. <listitem>
  440. <para>Used to attach or detach portable services from the local
  441. system</para>
  442. <indexterm zone="ch-system-systemd portablectl">
  443. <primary sortas="b-portablectl">portablectl</primary>
  444. </indexterm>
  445. </listitem>
  446. </varlistentry>
  447. <varlistentry id="poweroff">
  448. <term><command>poweroff</command></term>
  449. <listitem>
  450. <para>Tells the kernel to halt the system and switch off the computer
  451. (see <command>halt</command>)</para>
  452. <indexterm zone="ch-system-systemd poweroff">
  453. <primary sortas="b-poweroff">poweroff</primary>
  454. </indexterm>
  455. </listitem>
  456. </varlistentry>
  457. <varlistentry id="reboot">
  458. <term><command>reboot</command></term>
  459. <listitem>
  460. <para>Tells the kernel to reboot the system (see
  461. <command>halt</command>)</para>
  462. <indexterm zone="ch-system-systemd reboot">
  463. <primary sortas="b-reboot">reboot</primary>
  464. </indexterm>
  465. </listitem>
  466. </varlistentry>
  467. <varlistentry id="resolvconf">
  468. <term><command>resolvconf</command></term>
  469. <listitem>
  470. <para>Register DNS server and domain configuration with
  471. <command>systemd-resolved</command></para>
  472. <indexterm zone="ch-system-systemd resolvconf">
  473. <primary sortas="b-resolvconf">resolvconf</primary>
  474. </indexterm>
  475. </listitem>
  476. </varlistentry>
  477. <varlistentry id="resolvectl">
  478. <term><command>resolvectl</command></term>
  479. <listitem>
  480. <para>Send control commands to the network name resolution
  481. manager, or resolve domain names, IPv4 and IPv6 addresses,
  482. DNS records, and services.</para>
  483. <indexterm zone="ch-system-systemd resolvectl">
  484. <primary sortas="b-resolvectl">resolvectl</primary>
  485. </indexterm>
  486. </listitem>
  487. </varlistentry>
  488. <varlistentry id="runlevel">
  489. <term><command>runlevel</command></term>
  490. <listitem>
  491. <para>Reports the previous and the current run-level, as noted in the
  492. last run-level record in <filename>/var/run/utmp</filename></para>
  493. <indexterm zone="ch-system-systemd runlevel">
  494. <primary sortas="b-runlevel">runlevel</primary>
  495. </indexterm>
  496. </listitem>
  497. </varlistentry>
  498. <varlistentry id="shutdown">
  499. <term><command>shutdown</command></term>
  500. <listitem>
  501. <para>Brings the system down in a secure way, signaling all processes
  502. and notifying all logged-in users</para>
  503. <indexterm zone="ch-system-systemd shutdown">
  504. <primary sortas="b-shutdown">shutdown</primary>
  505. </indexterm>
  506. </listitem>
  507. </varlistentry>
  508. <varlistentry id="systemctl">
  509. <term><command>systemctl</command></term>
  510. <listitem>
  511. <para>Used to introspect and control the state of the systemd system
  512. and service manager</para>
  513. <indexterm zone="ch-system-systemd systemctl">
  514. <primary sortas="b-systemctl">systemctl</primary>
  515. </indexterm>
  516. </listitem>
  517. </varlistentry>
  518. <varlistentry id="systemd-analyze">
  519. <term><command>systemd-analyze</command></term>
  520. <listitem>
  521. <para>Used to determine system boot-up performance of the current
  522. boot</para>
  523. <indexterm zone="ch-system-systemd systemd-analyze">
  524. <primary sortas="b-systemd-analyze">systemd-analyze</primary>
  525. </indexterm>
  526. </listitem>
  527. </varlistentry>
  528. <varlistentry id="systemd-ask-password">
  529. <term><command>systemd-ask-password</command></term>
  530. <listitem>
  531. <para>Used to query a system password or passphrase from the user,
  532. using a question message specified on the command line</para>
  533. <indexterm zone="ch-system-systemd systemd-ask-password">
  534. <primary sortas="b-systemd-ask-password">systemd-ask-password</primary>
  535. </indexterm>
  536. </listitem>
  537. </varlistentry>
  538. <varlistentry id="systemd-cat">
  539. <term><command>systemd-cat</command></term>
  540. <listitem>
  541. <para>Used to connect STDOUT and STDERR of a process with the Journal
  542. </para>
  543. <indexterm zone="ch-system-systemd systemd-cat">
  544. <primary sortas="b-systemd-cat">systemd-cat</primary>
  545. </indexterm>
  546. </listitem>
  547. </varlistentry>
  548. <varlistentry id="systemd-cgls">
  549. <term><command>systemd-cgls</command></term>
  550. <listitem>
  551. <para>Recursively shows the contents of the selected Linux control
  552. group hierarchy in a tree</para>
  553. <indexterm zone="ch-system-systemd systemd-cgls">
  554. <primary sortas="b-systemd-cgls">systemd-cgls</primary>
  555. </indexterm>
  556. </listitem>
  557. </varlistentry>
  558. <varlistentry id="systemd-cgtop">
  559. <term><command>systemd-cgtop</command></term>
  560. <listitem>
  561. <para>Shows the top control groups of the local Linux control group
  562. hierarchy, ordered by their CPU, memory and disk I/O load</para>
  563. <indexterm zone="ch-system-systemd systemd-cgtop">
  564. <primary sortas="b-systemd-cgtop">systemd-cgtop</primary>
  565. </indexterm>
  566. </listitem>
  567. </varlistentry>
  568. <varlistentry id="systemd-delta">
  569. <term><command>systemd-delta</command></term>
  570. <listitem>
  571. <para>Used to identify and compare configuration files in
  572. <filename class="directory">/etc</filename> that override default
  573. counterparts in <filename class="directory">/usr</filename></para>
  574. <indexterm zone="ch-system-systemd systemd-delta">
  575. <primary sortas="b-systemd-delta">systemd-delta</primary>
  576. </indexterm>
  577. </listitem>
  578. </varlistentry>
  579. <varlistentry id="systemd-detect-virt">
  580. <term><command>systemd-detect-virt</command></term>
  581. <listitem>
  582. <para>Detects execution in a virtualized environment</para>
  583. <indexterm zone="ch-system-systemd systemd-detect-virt">
  584. <primary sortas="b-systemd-detect-virt">systemd-detect-virt</primary>
  585. </indexterm>
  586. </listitem>
  587. </varlistentry>
  588. <varlistentry id="systemd-escape">
  589. <term><command>systemd-escape</command></term>
  590. <listitem>
  591. <para>Used to escape strings for inclusion in systemd unit
  592. names</para>
  593. <indexterm zone="ch-system-systemd systemd-escape">
  594. <primary sortas="b-systemd-escape">systemd-escape</primary>
  595. </indexterm>
  596. </listitem>
  597. </varlistentry>
  598. <varlistentry id="systemd-hwdb">
  599. <term><command>systemd-hwdb</command></term>
  600. <listitem>
  601. <para>Used to manage hardware database (hwdb)</para>
  602. <indexterm zone="ch-system-systemd systemd-hwdb">
  603. <primary sortas="b-systemd-hwdb">systemd-hwdb</primary>
  604. </indexterm>
  605. </listitem>
  606. </varlistentry>
  607. <varlistentry id="systemd-id128">
  608. <term><command>systemd-id128</command></term>
  609. <listitem>
  610. <para>Generate and print id128 strings</para>
  611. <indexterm zone="ch-system-systemd systemd-id128">
  612. <primary sortas="b-systemd-id128">systemd-id128</primary>
  613. </indexterm>
  614. </listitem>
  615. </varlistentry>
  616. <varlistentry id="systemd-inhibit">
  617. <term><command>systemd-inhibit</command></term>
  618. <listitem>
  619. <para>Used to execute a program with a shutdown, sleep or idle
  620. inhibitor lock taken</para>
  621. <indexterm zone="ch-system-systemd systemd-inhibit">
  622. <primary sortas="b-systemd-inhibit">systemd-inhibit</primary>
  623. </indexterm>
  624. </listitem>
  625. </varlistentry>
  626. <varlistentry id="systemd-machine-id-setup">
  627. <term><command>systemd-machine-id-setup</command></term>
  628. <listitem>
  629. <para>Used by system installer tools to initialize the machine ID
  630. stored in <filename>/etc/machine-id</filename> at install time with a
  631. randomly generated ID</para>
  632. <indexterm zone="ch-system-systemd systemd-machine-id-setup">
  633. <primary sortas="b-systemd-machine-id-setup">systemd-machine-id-setup</primary>
  634. </indexterm>
  635. </listitem>
  636. </varlistentry>
  637. <varlistentry id="systemd-mount">
  638. <term><command>systemd-mount</command></term>
  639. <listitem>
  640. <para>A tool to temporarily mount or auto-mount a drive.</para>
  641. <indexterm zone="ch-system-systemd systemd-mount">
  642. <primary sortas="b-systemd-mount">systemd-mount</primary>
  643. </indexterm>
  644. </listitem>
  645. </varlistentry>
  646. <varlistentry id="systemd-notify">
  647. <term><command>systemd-notify</command></term>
  648. <listitem>
  649. <para>Used by daemon scripts to notify the init system about status
  650. changes</para>
  651. <indexterm zone="ch-system-systemd systemd-notify">
  652. <primary sortas="b-systemd-notify">systemd-notify</primary>
  653. </indexterm>
  654. </listitem>
  655. </varlistentry>
  656. <varlistentry id="systemd-nspawn">
  657. <term><command>systemd-nspawn</command></term>
  658. <listitem>
  659. <para>Used to run a command or OS in a light-weight namespace
  660. container</para>
  661. <indexterm zone="ch-system-systemd systemd-nspawn">
  662. <primary sortas="b-systemd-nspawn">systemd-nspawn</primary>
  663. </indexterm>
  664. </listitem>
  665. </varlistentry>
  666. <varlistentry id="systemd-path">
  667. <term><command>systemd-path</command></term>
  668. <listitem>
  669. <para>Used to query system and user paths</para>
  670. <indexterm zone="ch-system-systemd systemd-path">
  671. <primary sortas="b-systemd-path">systemd-path</primary>
  672. </indexterm>
  673. </listitem>
  674. </varlistentry>
  675. <varlistentry id="systemd-resolve">
  676. <term><command>systemd-resolve</command></term>
  677. <listitem>
  678. <para>Used to resolve domain names, IPV4 and IPv6 addresses, DNS
  679. resource records, and services</para>
  680. <indexterm zone="ch-system-systemd systemd-resolve">
  681. <primary sortas="b-systemd-resolve">systemd-resolve</primary>
  682. </indexterm>
  683. </listitem>
  684. </varlistentry>
  685. <varlistentry id="systemd-run">
  686. <term><command>systemd-run</command></term>
  687. <listitem>
  688. <para>Used to create and start a transient .service or a .scope unit
  689. and run the specified command in it</para>
  690. <indexterm zone="ch-system-systemd systemd-run">
  691. <primary sortas="b-systemd-run">systemd-run</primary>
  692. </indexterm>
  693. </listitem>
  694. </varlistentry>
  695. <!-- <varlistentry id="systemd-stdio-bridge">
  696. <term><command>systemd-stdio-bridge</command></term>
  697. <listitem>
  698. <para>To be completed</para>
  699. <indexterm zone="ch-system-systemd systemd-stdio-bridge">
  700. <primary sortas="b-systemd-stdio-bridge">systemd-stdio-bridge</primary>
  701. </indexterm>
  702. </listitem>
  703. </varlistentry> -->
  704. <varlistentry id="systemd-socket-activate">
  705. <term><command>systemd-socket-activate</command></term>
  706. <listitem>
  707. <para>A tool to listen on socket devices and launch a process upon
  708. connection.</para>
  709. <indexterm zone="ch-system-systemd systemd-socket-activate">
  710. <primary sortas="b-systemd-socket-activate">systemd-socket-activate</primary>
  711. </indexterm>
  712. </listitem>
  713. </varlistentry>
  714. <varlistentry id="systemd-tmpfiles">
  715. <term><command>systemd-tmpfiles</command></term>
  716. <listitem>
  717. <para>Creates, deletes and cleans up volatile and temporary files and
  718. directories, based on the configuration file format and location
  719. specified in
  720. <filename class="directory">tmpfiles.d</filename> directories</para>
  721. <indexterm zone="ch-system-systemd systemd-tmpfiles">
  722. <primary sortas="b-systemd-tmpfiles">systemd-tmpfiles</primary>
  723. </indexterm>
  724. </listitem>
  725. </varlistentry>
  726. <varlistentry id="systemd-umount">
  727. <term><command>systemd-umount</command></term>
  728. <listitem>
  729. <para>Unmount mount points</para>
  730. <indexterm zone="ch-system-systemd systemd-umount">
  731. <primary sortas="b-systemd-umount">systemd-umount</primary>
  732. </indexterm>
  733. </listitem>
  734. </varlistentry>
  735. <varlistentry id="systemd-tty-ask-password-agent">
  736. <term><command>systemd-tty-ask-password-agent</command></term>
  737. <listitem>
  738. <para>Used to list or process pending systemd password requests</para>
  739. <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
  740. <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
  741. </indexterm>
  742. </listitem>
  743. </varlistentry>
  744. <varlistentry id="telinit">
  745. <term><command>telinit</command></term>
  746. <listitem>
  747. <para>Tells <command>init</command> which run-level to change
  748. to</para>
  749. <indexterm zone="ch-system-systemd telinit">
  750. <primary sortas="b-telinit">telinit</primary>
  751. </indexterm>
  752. </listitem>
  753. </varlistentry>
  754. <varlistentry id="timedatectl">
  755. <term><command>timedatectl</command></term>
  756. <listitem>
  757. <para>Used to query and change the system clock and its settings
  758. </para>
  759. <indexterm zone="ch-system-systemd timedatectl">
  760. <primary sortas="b-timedatectl">timedatectl</primary>
  761. </indexterm>
  762. </listitem>
  763. </varlistentry>
  764. <varlistentry id="udevadm">
  765. <term><command>udevadm</command></term>
  766. <listitem>
  767. <para>Generic udev administration tool: controls the udevd daemon,
  768. provides info from the Udev database, monitors uevents, waits for
  769. uevents to finish, tests udev configuration, and triggers uevents
  770. for a given device</para>
  771. <indexterm zone="ch-system-systemd udevadm">
  772. <primary sortas="b-udevadm">udevadm</primary>
  773. </indexterm>
  774. </listitem>
  775. </varlistentry>
  776. <varlistentry id="libsystemd">
  777. <term><filename class="libraryfile">libsystemd</filename></term>
  778. <listitem>
  779. <para>The main systemd utility library</para>
  780. <indexterm zone="ch-system-systemd libsystemd">
  781. <primary sortas="c-libsystemd">libsystemd</primary>
  782. </indexterm>
  783. </listitem>
  784. </varlistentry>
  785. <varlistentry id="libudev">
  786. <term><filename class="libraryfile">libudev</filename></term>
  787. <listitem>
  788. <para>A library to access Udev device information</para>
  789. <indexterm zone="ch-system-systemd libudev">
  790. <primary sortas="c-libudev">libudev</primary>
  791. </indexterm>
  792. </listitem>
  793. </varlistentry>
  794. </variablelist>
  795. </sect2>
  796. </sect1>