summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-23 22:43:20 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-24 10:05:04 +0200
commit250e9fadbcc0ca90e697d7efb40855b054ed3b8f (patch)
treedc7a2c14372d378e114fdd634d55d80afb179534 /man
parente1a7f622e7f9831c07294ad9ffc866d48b2b61a5 (diff)
downloadsystemd-250e9fadbcc0ca90e697d7efb40855b054ed3b8f.tar.gz
systemd-250e9fadbcc0ca90e697d7efb40855b054ed3b8f.tar.bz2
systemd-250e9fadbcc0ca90e697d7efb40855b054ed3b8f.zip
Add %j/%J unit specifiers
Those are quite similar to %i/%I, but refer to the last dash-separated component of the name prefix. The new functionality of dash-dropins could largely supersede the template functionality, so it would be tempting to overload %i/%I. But that would not be backwards compatible. So let's add the two new letters instead.
Diffstat (limited to 'man')
-rw-r--r--man/systemd.unit.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index d66b6aad08..02e0f499e8 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -1508,7 +1508,7 @@
</variablelist>
<para>The following specifiers are interpreted in the Install
- section: %n, %N, %p, %i, %U, %u, %m, %H, %b, %v. For their meaning
+ section: %n, %N, %p, %i, %j, %U, %u, %m, %H, %b, %v. For their meaning
see the next section.
</para>
</refsect1>
@@ -1567,6 +1567,16 @@
<entry>Same as <literal>%i</literal>, but with escaping undone.</entry>
</row>
<row>
+ <entry><literal>%j</literal></entry>
+ <entry>Final component of the prefix</entry>
+ <entry>This is the string between the last <literal>-</literal> and the end of the prefix name. If there is no <literal>-</literal>, this is the same as <literal>%p</literal>.</entry>
+ </row>
+ <row>
+ <entry><literal>%J</literal></entry>
+ <entry>Unescaped final component of the prefix</entry>
+ <entry>Same as <literal>%j</literal>, but with escaping undone.</entry>
+ </row>
+ <row>
<entry><literal>%f</literal></entry>
<entry>Unescaped filename</entry>
<entry>This is either the unescaped instance name (if applicable) with <filename>/</filename> prepended (if applicable), or the unescaped prefix name prepended with <filename>/</filename>. This implements unescaping according to the rules for escaping absolute file system paths discussed above.</entry>