|
|
a52f674 |
From e9511e0450e97fe28f66c231e347d64c9730f539 Mon Sep 17 00:00:00 2001
|
|
|
a52f674 |
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
a52f674 |
Date: Mon, 17 Feb 2014 03:37:13 +0100
|
|
|
a52f674 |
Subject: [PATCH] doc: update punctuation
|
|
|
a52f674 |
|
|
|
a52f674 |
Resolve spotted issues related to missing or extraneous commas, dashes.
|
|
|
a52f674 |
|
|
|
a52f674 |
(cherry picked from commit 73e231abde39f22097df50542c745e01de879836)
|
|
|
a52f674 |
|
|
|
a52f674 |
Conflicts:
|
|
|
a52f674 |
man/journalctl.xml
|
|
|
a52f674 |
man/sd_bus_error.xml
|
|
|
a52f674 |
man/sd_bus_new.xml
|
|
|
a52f674 |
man/systemctl.xml
|
|
|
a52f674 |
man/systemd-networkd.service.xml
|
|
|
a52f674 |
man/systemd-nspawn.xml
|
|
|
a52f674 |
man/systemd-system.conf.xml
|
|
|
a52f674 |
man/systemd.exec.xml
|
|
|
a52f674 |
man/systemd.kill.xml
|
|
|
a52f674 |
man/systemd.service.xml
|
|
|
a52f674 |
man/systemd.timer.xml
|
|
|
a52f674 |
src/backlight/backlight.c
|
|
|
a52f674 |
src/core/cgroup.c
|
|
|
a52f674 |
src/libsystemd/sd-bus/bus-kernel.c
|
|
|
a52f674 |
---
|
|
|
a52f674 |
man/journalctl.xml | 1 +
|
|
|
a52f674 |
man/systemd-cat.xml | 2 +-
|
|
|
a52f674 |
man/systemd-udevd.service.xml | 6 +++---
|
|
|
a52f674 |
man/systemd.service.xml | 42 +++++++++++++++++++--------------------
|
|
|
a52f674 |
man/systemd.socket.xml | 6 +++---
|
|
|
a52f674 |
man/systemd.special.xml | 2 +-
|
|
|
a52f674 |
man/systemd.xml | 2 +-
|
|
|
a52f674 |
rules/60-persistent-storage.rules | 2 +-
|
|
|
a52f674 |
src/journal/journalctl.c | 2 +-
|
|
|
a52f674 |
src/journal/sd-journal.c | 4 ++--
|
|
|
a52f674 |
src/shared/cgroup-util.c | 4 ++--
|
|
|
a52f674 |
src/udev/udev-builtin-usb_id.c | 4 ++--
|
|
|
a52f674 |
12 files changed, 39 insertions(+), 38 deletions(-)
|
|
|
a52f674 |
|
|
|
a52f674 |
diff --git a/man/journalctl.xml b/man/journalctl.xml
|
|
|
a52f674 |
index d75c758..b695b3d 100644
|
|
|
a52f674 |
--- a/man/journalctl.xml
|
|
|
a52f674 |
+++ b/man/journalctl.xml
|
|
|
a52f674 |
@@ -509,6 +509,7 @@
|
|
|
a52f674 |
and additional matches for messages
|
|
|
a52f674 |
from systemd and messages about
|
|
|
a52f674 |
coredumps for the specified unit.</para>
|
|
|
a52f674 |
+
|
|
|
a52f674 |
<para>This parameter can be specified multiple times.
|
|
|
a52f674 |
</para></listitem>
|
|
|
a52f674 |
</varlistentry>
|
|
|
a52f674 |
diff --git a/man/systemd-cat.xml b/man/systemd-cat.xml
|
|
|
a52f674 |
index 16a8eb4..e61a6ac 100644
|
|
|
a52f674 |
--- a/man/systemd-cat.xml
|
|
|
a52f674 |
+++ b/man/systemd-cat.xml
|
|
|
a52f674 |
@@ -189,7 +189,7 @@
|
|
|
a52f674 |
<para>Even though the two examples have very similar
|
|
|
a52f674 |
effects the first is preferable since only one process
|
|
|
a52f674 |
is running at a time, and both stdout and stderr are
|
|
|
a52f674 |
- captured while in the second example only stdout is
|
|
|
a52f674 |
+ captured while in the second example, only stdout is
|
|
|
a52f674 |
captured.</para>
|
|
|
a52f674 |
</refsect1>
|
|
|
a52f674 |
|
|
|
a52f674 |
diff --git a/man/systemd-udevd.service.xml b/man/systemd-udevd.service.xml
|
|
|
a52f674 |
index b3bca2f..0e49fa0 100644
|
|
|
a52f674 |
--- a/man/systemd-udevd.service.xml
|
|
|
a52f674 |
+++ b/man/systemd-udevd.service.xml
|
|
|
a52f674 |
@@ -93,10 +93,10 @@
|
|
|
a52f674 |
<term><option>--resolve-names=</option></term>
|
|
|
a52f674 |
<listitem>
|
|
|
a52f674 |
<para>Specify when systemd-udevd should resolve names of users and groups.
|
|
|
a52f674 |
- When set to <option>early</option> (the default) names will be
|
|
|
a52f674 |
+ When set to <option>early</option> (the default), names will be
|
|
|
a52f674 |
resolved when the rules are parsed. When set to
|
|
|
a52f674 |
- <option>late</option> names will be resolved for every event.
|
|
|
a52f674 |
- When set to <option>never</option> names will never be resolved
|
|
|
a52f674 |
+ <option>late</option>, names will be resolved for every event.
|
|
|
a52f674 |
+ When set to <option>never</option>, names will never be resolved
|
|
|
a52f674 |
and all devices will be owned by root.</para>
|
|
|
a52f674 |
</listitem>
|
|
|
a52f674 |
</varlistentry>
|
|
|
a52f674 |
diff --git a/man/systemd.service.xml b/man/systemd.service.xml
|
|
|
a52f674 |
index 0f4be71..4d672f0 100644
|
|
|
a52f674 |
--- a/man/systemd.service.xml
|
|
|
a52f674 |
+++ b/man/systemd.service.xml
|
|
|
a52f674 |
@@ -748,27 +748,27 @@ ExecStart=/bin/echo $ONE $TWO ${TWO}</programlisting>
|
|
|
a52f674 |
definitions can either be numeric exit
|
|
|
a52f674 |
codes or termination signal names,
|
|
|
a52f674 |
separated by spaces. For example:
|
|
|
a52f674 |
- <programlisting>SuccessExitStatus=1 2 8 <constant>SIGKILL</constant></programlisting>
|
|
|
a52f674 |
- ensures that exit codes 1, 2, 8 and
|
|
|
a52f674 |
- the termination signal
|
|
|
a52f674 |
- <constant>SIGKILL</constant> are
|
|
|
a52f674 |
- considered clean service terminations.
|
|
|
a52f674 |
- </para>
|
|
|
a52f674 |
-
|
|
|
a52f674 |
- <para>Note that if a process has a
|
|
|
a52f674 |
- signal handler installed and exits by
|
|
|
a52f674 |
- calling
|
|
|
a52f674 |
- <citerefentry><refentrytitle>_exit</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
|
|
a52f674 |
- in response to a signal, the
|
|
|
a52f674 |
- information about the signal is lost.
|
|
|
a52f674 |
- Programs should instead perform cleanup and kill themselves with the same signal instead. See
|
|
|
a52f674 |
- <ulink url="http://www.cons.org/cracauer/sigint.html">Proper handling of SIGINT/SIGQUIT — How to be a proper program</ulink>.</para>
|
|
|
a52f674 |
-
|
|
|
a52f674 |
- <para>This option may appear more than once
|
|
|
a52f674 |
- in which case the list of successful
|
|
|
a52f674 |
- exit statuses is merged. If the empty
|
|
|
a52f674 |
- string is assigned to this option, the
|
|
|
a52f674 |
- list is reset, all prior assignments
|
|
|
a52f674 |
+ <programlisting>SuccessExitStatus=1 2 8 <constant>SIGKILL</constant></programlisting>
|
|
|
a52f674 |
+ ensures that exit codes 1, 2, 8 and
|
|
|
a52f674 |
+ the termination signal
|
|
|
a52f674 |
+ <constant>SIGKILL</constant> are
|
|
|
a52f674 |
+ considered clean service terminations.
|
|
|
a52f674 |
+ </para>
|
|
|
a52f674 |
+
|
|
|
a52f674 |
+ <para>Note that if a process has a
|
|
|
a52f674 |
+ signal handler installed and exits by
|
|
|
a52f674 |
+ calling
|
|
|
a52f674 |
+ <citerefentry><refentrytitle>_exit</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
|
|
a52f674 |
+ in response to a signal, the
|
|
|
a52f674 |
+ information about the signal is lost.
|
|
|
a52f674 |
+ Programs should instead perform cleanup and kill themselves with the same signal instead. See
|
|
|
a52f674 |
+ <ulink url="http://www.cons.org/cracauer/sigint.html">Proper handling of SIGINT/SIGQUIT — How to be a proper program</ulink>.</para>
|
|
|
a52f674 |
+
|
|
|
a52f674 |
+ <para>This option may appear more than once,
|
|
|
a52f674 |
+ in which case the list of successful
|
|
|
a52f674 |
+ exit statuses is merged. If the empty
|
|
|
a52f674 |
+ string is assigned to this option, the
|
|
|
a52f674 |
+ list is reset, all prior assignments
|
|
|
a52f674 |
of this option will have no
|
|
|
a52f674 |
effect.</para></listitem>
|
|
|
a52f674 |
</varlistentry>
|
|
|
a52f674 |
diff --git a/man/systemd.socket.xml b/man/systemd.socket.xml
|
|
|
a52f674 |
index 39fba51..3e1dd88 100644
|
|
|
a52f674 |
--- a/man/systemd.socket.xml
|
|
|
a52f674 |
+++ b/man/systemd.socket.xml
|
|
|
a52f674 |
@@ -84,7 +84,7 @@
|
|
|
a52f674 |
which configure resource control settings for the
|
|
|
a52f674 |
processes of the socket.</para>
|
|
|
a52f674 |
|
|
|
a52f674 |
- <para>For each socket file a matching service file
|
|
|
a52f674 |
+ <para>For each socket file, a matching service file
|
|
|
a52f674 |
must exist, describing the service to start on
|
|
|
a52f674 |
incoming traffic on the socket (see
|
|
|
a52f674 |
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
|
|
a52f674 |
@@ -254,7 +254,7 @@
|
|
|
a52f674 |
before the interface it is configured
|
|
|
a52f674 |
on is up and running, and even
|
|
|
a52f674 |
regardless of whether it will be up and
|
|
|
a52f674 |
- running at any point. To deal with this
|
|
|
a52f674 |
+ running at any point. To deal with this,
|
|
|
a52f674 |
it is recommended to set the
|
|
|
a52f674 |
<varname>FreeBind=</varname> option
|
|
|
a52f674 |
described below.</para></listitem>
|
|
|
a52f674 |
@@ -720,7 +720,7 @@
|
|
|
a52f674 |
<varname>Accept=no</varname>. It
|
|
|
a52f674 |
defaults to the service that bears the
|
|
|
a52f674 |
same name as the socket (with the
|
|
|
a52f674 |
- suffix replaced). In most cases it
|
|
|
a52f674 |
+ suffix replaced). In most cases, it
|
|
|
a52f674 |
should not be necessary to use this
|
|
|
a52f674 |
option.</para></listitem>
|
|
|
a52f674 |
</varlistentry>
|
|
|
a52f674 |
diff --git a/man/systemd.special.xml b/man/systemd.special.xml
|
|
|
a52f674 |
index 76bb5cd..8ccccc2 100644
|
|
|
a52f674 |
--- a/man/systemd.special.xml
|
|
|
a52f674 |
+++ b/man/systemd.special.xml
|
|
|
a52f674 |
@@ -820,7 +820,7 @@
|
|
|
a52f674 |
services. These targets are generally not part of the
|
|
|
a52f674 |
initial boot transaction, unless they are explicitly
|
|
|
a52f674 |
pulled in by one of the implementing services. Note
|
|
|
a52f674 |
- specifically, that these <emphasis>passive</emphasis>
|
|
|
a52f674 |
+ specifically that these <emphasis>passive</emphasis>
|
|
|
a52f674 |
target units are generally not pulled in by the
|
|
|
a52f674 |
consumer of a service, but by the provider of the
|
|
|
a52f674 |
service. This means: a consuming service should order
|
|
|
a52f674 |
diff --git a/man/systemd.xml b/man/systemd.xml
|
|
|
a52f674 |
index 23a0c26..76d977d 100644
|
|
|
a52f674 |
--- a/man/systemd.xml
|
|
|
a52f674 |
+++ b/man/systemd.xml
|
|
|
a52f674 |
@@ -407,7 +407,7 @@
|
|
|
a52f674 |
and ordering dependencies are placed between two
|
|
|
a52f674 |
units. Also note that the majority of dependencies are
|
|
|
a52f674 |
implicitly created and maintained by systemd. In most
|
|
|
a52f674 |
- cases it should be unnecessary to declare additional
|
|
|
a52f674 |
+ cases, it should be unnecessary to declare additional
|
|
|
a52f674 |
dependencies manually, however it is possible to do
|
|
|
a52f674 |
this.</para>
|
|
|
a52f674 |
|
|
|
a52f674 |
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules
|
|
|
a52f674 |
index 154ffd9..4f7163d 100644
|
|
|
a52f674 |
--- a/rules/60-persistent-storage.rules
|
|
|
a52f674 |
+++ b/rules/60-persistent-storage.rules
|
|
|
a52f674 |
@@ -33,7 +33,7 @@ KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="scsi", ATTRS{type}==
|
|
|
a52f674 |
|
|
|
a52f674 |
# Run ata_id on non-removable USB Mass Storage (SATA/PATA disks in enclosures)
|
|
|
a52f674 |
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", ATTR{removable}=="0", SUBSYSTEMS=="usb", IMPORT{program}="ata_id --export $devnode"
|
|
|
a52f674 |
-# Otherwise fall back to using usb_id for USB devices
|
|
|
a52f674 |
+# Otherwise, fall back to using usb_id for USB devices
|
|
|
a52f674 |
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
|
|
|
a52f674 |
|
|
|
a52f674 |
# scsi devices
|
|
|
a52f674 |
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
|
|
|
a52f674 |
index ccd96b2..5b0be27 100644
|
|
|
a52f674 |
--- a/src/journal/journalctl.c
|
|
|
a52f674 |
+++ b/src/journal/journalctl.c
|
|
|
a52f674 |
@@ -715,7 +715,7 @@ static int add_matches(sd_journal *j, char **args) {
|
|
|
a52f674 |
t = strappend("_COMM=", comm);
|
|
|
a52f674 |
|
|
|
a52f674 |
/* Append _EXE only if the interpreter is not a link.
|
|
|
a52f674 |
- Otherwise it might be outdated often. */
|
|
|
a52f674 |
+ Otherwise, it might be outdated often. */
|
|
|
a52f674 |
if (lstat(interpreter, &st) == 0 &&
|
|
|
a52f674 |
!S_ISLNK(st.st_mode)) {
|
|
|
a52f674 |
t2 = strappend("_EXE=", interpreter);
|
|
|
a52f674 |
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
|
|
|
a52f674 |
index 46c3feb..f4af1f6 100644
|
|
|
a52f674 |
--- a/src/journal/sd-journal.c
|
|
|
a52f674 |
+++ b/src/journal/sd-journal.c
|
|
|
a52f674 |
@@ -472,7 +472,7 @@ static int compare_entry_order(JournalFile *af, Object *_ao,
|
|
|
a52f674 |
|
|
|
a52f674 |
if (sd_id128_equal(ao->entry.boot_id, bo->entry.boot_id)) {
|
|
|
a52f674 |
|
|
|
a52f674 |
- /* If the boot id matches compare monotonic time */
|
|
|
a52f674 |
+ /* If the boot id matches, compare monotonic time */
|
|
|
a52f674 |
a = le64toh(ao->entry.monotonic);
|
|
|
a52f674 |
b = le64toh(bo->entry.monotonic);
|
|
|
a52f674 |
|
|
|
a52f674 |
@@ -482,7 +482,7 @@ static int compare_entry_order(JournalFile *af, Object *_ao,
|
|
|
a52f674 |
return 1;
|
|
|
a52f674 |
}
|
|
|
a52f674 |
|
|
|
a52f674 |
- /* Otherwise compare UTC time */
|
|
|
a52f674 |
+ /* Otherwise, compare UTC time */
|
|
|
a52f674 |
a = le64toh(ao->entry.realtime);
|
|
|
a52f674 |
b = le64toh(bo->entry.realtime);
|
|
|
a52f674 |
|
|
|
a52f674 |
diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c
|
|
|
a52f674 |
index 8a4edda..3c64e62 100644
|
|
|
a52f674 |
--- a/src/shared/cgroup-util.c
|
|
|
a52f674 |
+++ b/src/shared/cgroup-util.c
|
|
|
a52f674 |
@@ -1115,7 +1115,7 @@ int cg_mangle_path(const char *path, char **result) {
|
|
|
a52f674 |
assert(path);
|
|
|
a52f674 |
assert(result);
|
|
|
a52f674 |
|
|
|
a52f674 |
- /* First check if it already is a filesystem path */
|
|
|
a52f674 |
+ /* First, check if it already is a filesystem path */
|
|
|
a52f674 |
if (path_startswith(path, "/sys/fs/cgroup")) {
|
|
|
a52f674 |
|
|
|
a52f674 |
t = strdup(path);
|
|
|
a52f674 |
@@ -1127,7 +1127,7 @@ int cg_mangle_path(const char *path, char **result) {
|
|
|
a52f674 |
return 0;
|
|
|
a52f674 |
}
|
|
|
a52f674 |
|
|
|
a52f674 |
- /* Otherwise treat it as cg spec */
|
|
|
a52f674 |
+ /* Otherwise, treat it as cg spec */
|
|
|
a52f674 |
r = cg_split_spec(path, &c, &p);
|
|
|
a52f674 |
if (r < 0)
|
|
|
a52f674 |
return r;
|
|
|
a52f674 |
diff --git a/src/udev/udev-builtin-usb_id.c b/src/udev/udev-builtin-usb_id.c
|
|
|
a52f674 |
index 1b9f824..883e11e 100644
|
|
|
a52f674 |
--- a/src/udev/udev-builtin-usb_id.c
|
|
|
a52f674 |
+++ b/src/udev/udev-builtin-usb_id.c
|
|
|
a52f674 |
@@ -219,9 +219,9 @@ static int dev_if_packed_info(struct udev_device *dev, char *ifs_str, size_t len
|
|
|
a52f674 |
* A unique USB identification is generated like this:
|
|
|
a52f674 |
*
|
|
|
a52f674 |
* 1.) Get the USB device type from InterfaceClass and InterfaceSubClass
|
|
|
a52f674 |
- * 2.) If the device type is 'Mass-Storage/SPC-2' or 'Mass-Storage/RBC'
|
|
|
a52f674 |
+ * 2.) If the device type is 'Mass-Storage/SPC-2' or 'Mass-Storage/RBC',
|
|
|
a52f674 |
* use the SCSI vendor and model as USB-Vendor and USB-model.
|
|
|
a52f674 |
- * 3.) Otherwise use the USB manufacturer and product as
|
|
|
a52f674 |
+ * 3.) Otherwise, use the USB manufacturer and product as
|
|
|
a52f674 |
* USB-Vendor and USB-model. Any non-printable characters
|
|
|
a52f674 |
* in those strings will be skipped; a slash '/' will be converted
|
|
|
a52f674 |
* into a full stop '.'.
|