systemd-custom.po 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:11
  20. msgid "Systemd Usage and Configuration"
  21. msgstr ""
  22. #. type: Content of: <sect1><indexterm><primary>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:14
  24. msgid "Systemd Customization"
  25. msgstr ""
  26. #. type: Content of: <sect1><sect2><title>
  27. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:18
  28. msgid "Basic Configuration"
  29. msgstr ""
  30. #. type: Content of: <sect1><sect2><para>
  31. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:20
  32. msgid ""
  33. "The <filename>/etc/systemd/system.conf</filename> file contains a set of "
  34. "options to control basic systemd operations. The default file has all "
  35. "entries commented out with the default settings indicated. This file is "
  36. "where the log level may be changed as well as some basic logging settings. "
  37. "See the <filename>systemd-system.conf(5)</filename> manual page for details "
  38. "on each configuration option."
  39. msgstr ""
  40. #. type: Content of: <sect1><sect2><title>
  41. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:30
  42. msgid "Disabling Screen Clearing at Boot Time"
  43. msgstr ""
  44. #. type: Content of: <sect1><sect2><para>
  45. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:32
  46. msgid ""
  47. "The normal behavior for systemd is to clear the screen at the end of the "
  48. "boot sequence. If desired, this behavior may be changed by running the "
  49. "following command:"
  50. msgstr ""
  51. #. type: Content of: <sect1><sect2><screen>
  52. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:36
  53. #, no-wrap
  54. msgid ""
  55. "<userinput>mkdir -pv /etc/systemd/system/getty@tty1.service.d\n"
  56. "\n"
  57. "cat &gt; /etc/systemd/system/getty@tty1.service.d/noclear.conf &lt;&lt; "
  58. "EOF\n"
  59. "<literal>[Service]\n"
  60. "TTYVTDisallocate=no</literal>\n"
  61. "EOF</userinput>"
  62. msgstr ""
  63. #. type: Content of: <sect1><sect2><para>
  64. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:43
  65. msgid ""
  66. "The boot messages can always be reviewed by using the <userinput>journalctl "
  67. "-b</userinput> command as the root user."
  68. msgstr ""
  69. #. type: Content of: <sect1><sect2><title>
  70. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:49
  71. msgid "Disabling tmpfs for /tmp"
  72. msgstr ""
  73. #. type: Content of: <sect1><sect2><para>
  74. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:51
  75. msgid ""
  76. "By default, <filename class=\"directory\">/tmp</filename> is created as a "
  77. "tmpfs. If this is not desired, it can be overridden by executing the "
  78. "following command:"
  79. msgstr ""
  80. #. type: Content of: <sect1><sect2><screen>
  81. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:55
  82. #, no-wrap
  83. msgid "<userinput>ln -sfv /dev/null /etc/systemd/system/tmp.mount</userinput>"
  84. msgstr ""
  85. #. type: Content of: <sect1><sect2><para>
  86. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:57
  87. msgid ""
  88. "Alternatively, if a a separate partition for <filename "
  89. "class=\"directory\">/tmp</filename> is desired, specify that partition in a "
  90. "<filename>/etc/fstab</filename> entry."
  91. msgstr ""
  92. #. type: Content of: <sect1><sect2><warning><para>
  93. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:63
  94. msgid ""
  95. "Do not create the symbolic link above if a separate partition is used for "
  96. "<filename class=\"directory\">/tmp</filename>. This will prevent the root "
  97. "file system (/) from being remounted r/w and make the system unusable when "
  98. "booted."
  99. msgstr ""
  100. #. type: Content of: <sect1><sect2><title>
  101. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:73
  102. msgid "Configuring Automatic File Creation and Deletion"
  103. msgstr ""
  104. #. type: Content of: <sect1><sect2><para>
  105. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:75
  106. msgid "There are several services that create or delete files or directories:"
  107. msgstr ""
  108. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  109. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:79
  110. msgid "systemd-tmpfiles-clean.service"
  111. msgstr ""
  112. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  113. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:80
  114. msgid "systemd-tmpfiles-setup-dev.service"
  115. msgstr ""
  116. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  117. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:81
  118. msgid "systemd-tmpfiles-setup.service"
  119. msgstr ""
  120. #. type: Content of: <sect1><sect2><para>
  121. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:84
  122. msgid ""
  123. "The system location for the configuration files is "
  124. "<filename>/usr/lib/tmpfiles.d/*.conf</filename>. The local configuration "
  125. "files are in <filename class=\"directory\">/etc/tmpfiles.d</filename>. Files "
  126. "in <filename class=\"directory\">/etc/tmpfiles.d</filename> override files "
  127. "with the same name in <filename "
  128. "class=\"directory\">/usr/lib/tmpfiles.d</filename>. See "
  129. "<filename>tmpfiles.d(5)</filename> manual page for file format details."
  130. msgstr ""
  131. #. type: Content of: <sect1><sect2><para><screen>
  132. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:101
  133. #, no-wrap
  134. msgid "q /tmp 1777 root root 10d"
  135. msgstr ""
  136. #. type: Content of: <sect1><sect2><para>
  137. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:95
  138. msgid ""
  139. "Note that the syntax for the <filename>/usr/lib/tmpfiles.d/*.conf</filename> "
  140. "files can be confusing. For example, the default deletion of files in the "
  141. "/tmp directory is located in "
  142. "<filename>/usr/lib/tmpfiles.d/tmp.conf</filename> with the line: "
  143. "<placeholder type=\"screen\" id=\"0\"/> The type field, q, discusses "
  144. "creating a subvolume with quotas which is really only applicable to btrfs "
  145. "filesystems. It references type v which in turn references type d "
  146. "(directory). This then creates the specified directory if is is not present "
  147. "and adjusts the permissions and ownership as specified. Contents of the "
  148. "directory will be subject to time based cleanup if the age argument is "
  149. "specified."
  150. msgstr ""
  151. #. type: Content of: <sect1><sect2><para><screen>
  152. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:116
  153. #, no-wrap
  154. msgid ""
  155. "<userinput>mkdir -p /etc/tmpfiles.d\n"
  156. "cp /usr/lib/tmpfiles.d/tmp.conf /etc/tmpfiles.d</userinput>"
  157. msgstr ""
  158. #. type: Content of: <sect1><sect2><para>
  159. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:112
  160. msgid ""
  161. "If the default parameters are not desired, then the file should be copied to "
  162. "<filename class=\"directory\">/etc/tmpfiles.d</filename> and edited as "
  163. "desired. For example: <placeholder type=\"screen\" id=\"0\"/>"
  164. msgstr ""
  165. #. type: Content of: <sect1><sect2><title>
  166. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:123
  167. msgid "Overriding Default Services Behavior"
  168. msgstr ""
  169. #. type: Content of: <sect1><sect2><para>
  170. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:125
  171. msgid ""
  172. "The parameters of a unit can be overriden by creating a directory and a "
  173. "configuration file in <filename "
  174. "class=\"directory\">/etc/systemd/system</filename>. For example:"
  175. msgstr ""
  176. #. type: Content of: <sect1><sect2><screen>
  177. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:129
  178. #, no-wrap
  179. msgid ""
  180. "<userinput>mkdir -pv /etc/systemd/system/foobar.service.d\n"
  181. "\n"
  182. "cat > /etc/systemd/system/foobar.service.d/foobar.conf &lt;&lt; EOF\n"
  183. "<literal>[Service]\n"
  184. "Restart=always\n"
  185. "RestartSec=30</literal>\n"
  186. "EOF</userinput>"
  187. msgstr ""
  188. #. type: Content of: <sect1><sect2><para>
  189. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:137
  190. msgid ""
  191. "See <filename>systemd.unit(5)</filename> manual page for more "
  192. "information. After creating the configuration file, run <userinput>systemctl "
  193. "daemon-reload</userinput> and <userinput>systemctl restart "
  194. "foobar</userinput> to activate the changes to a service."
  195. msgstr ""
  196. #. type: Content of: <sect1><sect2><title>
  197. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:145
  198. msgid "Debugging the Boot Sequence"
  199. msgstr ""
  200. #. type: Content of: <sect1><sect2><para>
  201. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:147
  202. msgid ""
  203. "Rather than plain shell scripts used in SysVinit or BSD style init systems, "
  204. "systemd uses a unified format for different types of startup files (or "
  205. "units). The command <command>systemctl</command> is used to enable, disable, "
  206. "control state, and obtain status of unit files. Here are some examples of "
  207. "frequently used commands:"
  208. msgstr ""
  209. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  210. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:155
  211. msgid ""
  212. "<command>systemctl list-units -t <replaceable>&lt;service&gt;</replaceable> "
  213. "[--all]</command>: lists loaded unit files of type service."
  214. msgstr ""
  215. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  216. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:159
  217. msgid ""
  218. "<command>systemctl list-units -t <replaceable>&lt;target&gt;</replaceable> "
  219. "[--all]</command>: lists loaded unit files of type target."
  220. msgstr ""
  221. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  222. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:163
  223. msgid ""
  224. "<command>systemctl show -p Wants "
  225. "<replaceable>&lt;multi-user.target&gt;</replaceable></command>: shows all "
  226. "units that depend on the multi-user target. Targets are special unit files "
  227. "that are anogalous to runlevels under SysVinit."
  228. msgstr ""
  229. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  230. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:169
  231. msgid ""
  232. "<command>systemctl status "
  233. "<replaceable>&lt;servicename.service&gt;</replaceable></command>: shows the "
  234. "status of the servicename service. The .service extension can be omitted if "
  235. "there are no other unit files with the same name, such as .socket files "
  236. "(which create a listening socket that provides similar functionality to "
  237. "inetd/xinetd)."
  238. msgstr ""
  239. #. type: Content of: <sect1><sect2><title>
  240. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:180
  241. msgid "Working with the Systemd Journal"
  242. msgstr ""
  243. #. type: Content of: <sect1><sect2><para>
  244. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:182
  245. msgid ""
  246. "Logging on a system booted with systemd is handled with systemd-journald (by "
  247. "default), rather than a typical unix syslog daemon. You can also add a "
  248. "normal syslog daemon and have both operate side by side if desired. The "
  249. "systemd-journald program stores journal entries in a binary format rather "
  250. "than a plain text log file. To assist with parsing the file, the command "
  251. "<command>journalctl</command> is provided. Here are some examples of "
  252. "frequently used commands:"
  253. msgstr ""
  254. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  255. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:192
  256. msgid ""
  257. "<command>journalctl -r</command>: shows all contents of the journal in "
  258. "reverse chronological order."
  259. msgstr ""
  260. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  261. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:196
  262. msgid ""
  263. "<command>journalctl -u <replaceable>UNIT</replaceable></command>: shows the "
  264. "journal entries associated with the specified UNIT file."
  265. msgstr ""
  266. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  267. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:201
  268. msgid ""
  269. "<command>journalctl -b[=ID] -r</command>: shows the journal entries since "
  270. "last successful boot (or for boot ID) in reverse chronological order."
  271. msgstr ""
  272. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  273. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:206
  274. msgid ""
  275. "<command>journalctl -f</command>: provides functionality similar to tail -f "
  276. "(follow)."
  277. msgstr ""
  278. #. type: Content of: <sect1><sect2><title>
  279. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:214
  280. msgid "Working with Core Dumps"
  281. msgstr ""
  282. #. type: Content of: <sect1><sect2><para>
  283. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:216
  284. msgid ""
  285. "Core dumps are useful to debug crashed programs, especially when a daemon "
  286. "process crashes. On systemd booted systems the core dumping is handled by "
  287. "<command>systemd-coredump</command>. It will log the core dump in the "
  288. "journal and store the core dump itself in <filename "
  289. "class=\"directory\">/var/lib/systemd/coredump</filename>. To retrieve and "
  290. "process core dumps, the <command>coredumpctl</command> tool is provided. "
  291. "Here are some examples of frequently used commands:"
  292. msgstr ""
  293. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  294. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:227
  295. msgid ""
  296. "<command>coredumpctl -r</command>: lists all core dumps in reverse "
  297. "chronological order."
  298. msgstr ""
  299. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  300. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:231
  301. msgid ""
  302. "<command>coredumpctl -1 info</command>: shows the information from the last "
  303. "core dump."
  304. msgstr ""
  305. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  306. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:235
  307. msgid ""
  308. "<command>coredumpctl -1 debug</command>: loads the last core dump into "
  309. "<ulink url=\"&blfs-book;general/gdb.html\">GDB</ulink>."
  310. msgstr ""
  311. #. type: Content of: <sect1><sect2><para>
  312. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:241
  313. msgid ""
  314. "Core dumps may use a lot of disk space. The maximum disk space used by core "
  315. "dumps can be limited by creating a configuration file in <filename "
  316. "class=\"directory\">/etc/systemd/coredump.conf.d</filename>. For example:"
  317. msgstr ""
  318. #. type: Content of: <sect1><sect2><screen>
  319. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:246
  320. #, no-wrap
  321. msgid ""
  322. "<userinput>mkdir -pv /etc/systemd/coredump.conf.d\n"
  323. "\n"
  324. "cat &gt; /etc/systemd/coredump.conf.d/maxuse.conf &lt;&lt; EOF\n"
  325. "<literal>[Coredump]\n"
  326. "MaxUse=5G</literal>\n"
  327. "EOF</userinput>"
  328. msgstr ""
  329. #. type: Content of: <sect1><sect2><para>
  330. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:253
  331. msgid ""
  332. "See the <filename>systemd-coredump(8)</filename>, "
  333. "<filename>coredumpctl(1)</filename>, and "
  334. "<filename>coredump.conf.d(5)</filename> manual pages for more information."
  335. msgstr ""
  336. #. type: Content of: <sect1><sect2><title>
  337. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:260
  338. msgid "Long Running Processes"
  339. msgstr ""
  340. #. type: Content of: <sect1><sect2><para>
  341. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:262
  342. msgid ""
  343. "Beginning with systemd-230, all user processes are killed when a user "
  344. "session is ended, even if nohup is used, or the process uses the "
  345. "<function>daemon()</function> or <function>setsid()</function> functions. "
  346. "This is a deliberate change from a historically permissive environment to a "
  347. "more restrictive one. The new behavior may cause issues if you depend on "
  348. "long running programs (e.g., <command>screen</command> or "
  349. "<command>tmux</command>) to remain active after ending your user session. "
  350. "There are three ways to enable lingering processes to remain after a user "
  351. "session is ended."
  352. msgstr ""
  353. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  354. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:275
  355. msgid ""
  356. "<emphasis>Enable process lingering for only selected users</emphasis>: "
  357. "Normal users have permission to enable process lingering with the command "
  358. "<command>loginctl enable-linger</command> for their own user. System "
  359. "administrators can use the same command with a <parameter>user</parameter> "
  360. "argument to enable for a user. That user can then use the "
  361. "<command>systemd-run</command> command to start long running processes. For "
  362. "example: <command>systemd-run --scope --user /usr/bin/screen</command>. If "
  363. "you enable lingering for your user, the user@.service will remain even after "
  364. "all login sessions are closed, and will automatically start at system "
  365. "boot. This has the advantage of explicitly allowing and disallowing "
  366. "processes to run after the user session has ended, but breaks backwards "
  367. "compatibility with tools like <command>nohup</command> and utilities that "
  368. "use <function>daemon()</function>."
  369. msgstr ""
  370. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  371. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:293
  372. msgid ""
  373. "<emphasis>Enable system-wide process lingering</emphasis>: You can set "
  374. "<parameter>KillUserProcesses=no</parameter> in "
  375. "<filename>/etc/systemd/logind.conf</filename> to enable process lingering "
  376. "globally for all users. This has the benefit of leaving the old method "
  377. "available to all users at the expense of explicit control."
  378. msgstr ""
  379. #. type: Content of: <sect1><sect2><itemizedlist><listitem><para>
  380. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/systemd-custom.xml:302
  381. msgid ""
  382. "<emphasis>Disable at build-time</emphasis>: You can disable lingering by "
  383. "default while building systemd by adding the switch "
  384. "<parameter>-Ddefault-kill-user-processes=false</parameter> to the "
  385. "<command>meson</command> command for systemd. This completely disables the "
  386. "ability of systemd to kill user processes at session end."
  387. msgstr ""