systemd.xml 36 KB

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