systemd.xml 35 KB

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