systemd.xml 36 KB

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