systemd.xml 36 KB

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