diff --git a/man/systemd.service.xml b/man/systemd.service.xml
index 0e9fa3e732..501da54b8a 100644
--- a/man/systemd.service.xml
+++ b/man/systemd.service.xml
@@ -1107,11 +1107,9 @@
Check
- systemd.exec5
- and
- systemd.kill5
- for more settings.
-
+ systemd.exec5 and
+ systemd.kill5 for more
+ settings.
@@ -1126,21 +1124,13 @@
ExecStop=, and
ExecStopPost= options.
- Multiple command lines may be concatenated in a single
- directive by separating them with semicolons (these semicolons
- must be passed as separate words). Lone semicolons may be escaped
- as \;.
+ Multiple command lines may be concatenated in a single directive by separating them with semicolons
+ (these semicolons must be passed as separate words). Lone semicolons may be escaped as
+ \;.
- Each command line is split on whitespace, with the first item being the command to
- execute, and the subsequent items being the arguments. Double quotes ("…") and single quotes
- ('…') may be used to wrap a whole item (the opening quote may appear only at the beginning or
- after whitespace that is not quoted, and the closing quote must be followed by whitespace or the
- end of line), in which case everything until the next matching quote becomes part of the same
- argument. Quotes themselves are removed. C-style escapes are also supported. The table below
- contains the list of known escape patterns. Only escape patterns which match the syntax in the
- table are allowed; other patterns may be added in the future and unknown patterns will result in
- a warning. In particular, any backslashes should be doubled. Finally, a trailing backslash
- (\) may be used to merge lines.
+ Each command line is unquoted using the rules described in "Quoting" section in
+ systemd.syntax5. The
+ first item becomes the command to execute, and the subsequent items the arguments.
This syntax is inspired by shell syntax, but only the meta-characters and expansions
described in the following paragraphs are understood, and the expansion of variables is
@@ -1240,74 +1230,6 @@ ls
>/dev/null,
&, ;, and
ls.
-
-
- C escapes supported in command lines and environment variables
-
-
-
-
-
- Literal
- Actual value
-
-
-
-
- \a
- bell
-
-
- \b
- backspace
-
-
- \f
- form feed
-
-
- \n
- newline
-
-
- \r
- carriage return
-
-
- \t
- tab
-
-
- \v
- vertical tab
-
-
- \\
- backslash
-
-
- \"
- double quotation mark
-
-
- \'
- single quotation mark
-
-
- \s
- space
-
-
- \xxx
- character number xx in hexadecimal encoding
-
-
- \nnn
- character number nnn in octal encoding
-
-
-
-
diff --git a/man/systemd.syntax.xml b/man/systemd.syntax.xml
index 7960adb659..5f207912b9 100644
--- a/man/systemd.syntax.xml
+++ b/man/systemd.syntax.xml
@@ -74,10 +74,10 @@
.ini files.
- Each file is a plain text file divided into sections, with configuration entries in the
- style key=value.
- Whitespace immediately before or after the = is ignored. Empty lines and lines starting with # or ; are
- ignored, which may be used for commenting.
+ Each file is a plain text file divided into sections, with configuration entries in the style
+ key=value. Whitespace immediately before or after
+ the = is ignored. Empty lines and lines starting with # or
+ ; are ignored, which may be used for commenting.
Lines ending in a backslash are concatenated with the following line while reading and the
backslash is replaced by a space character. This may be used to wrap long lines. The limit on
@@ -129,6 +129,88 @@ KeyThree=value 3\
file format.
+
+ Quoting
+
+ For settings where quoting is allowed, the following general rules apply: double quotes ("…") and
+ single quotes ('…') may be used to wrap a whole item (the opening quote may appear only at the beginning
+ or after whitespace that is not quoted, and the closing quote must be followed by whitespace or the end
+ of line), in which case everything until the next matching quote becomes part of the same item. Quotes
+ themselves are removed. C-style escapes are also supported. The table below contains the list of known
+ escape patterns. Only escape patterns which match the syntax in the table are allowed; other patterns may
+ be added in the future and unknown patterns will result in a warning. In particular, any backslashes
+ should be doubled. Finally, a trailing backslash (\) may be used to merge lines, as
+ described above.
+
+
+ Supported C escapes
+
+
+
+
+
+ Literal
+ Actual value
+
+
+
+
+ \a
+ bell
+
+
+ \b
+ backspace
+
+
+ \f
+ form feed
+
+
+ \n
+ newline
+
+
+ \r
+ carriage return
+
+
+ \t
+ tab
+
+
+ \v
+ vertical tab
+
+
+ \\
+ backslash
+
+
+ \"
+ double quotation mark
+
+
+ \'
+ single quotation mark
+
+
+ \s
+ space
+
+
+ \xxx
+ character number xx in hexadecimal encoding
+
+
+ \nnn
+ character number nnn in octal encoding
+
+
+
+
+
+
See Also