]> code.ossystems Code Review - openembedded-core.git/commit
systemd-systemctl-native: handle Install wildcards
authorBrad Bishop <bradleyb@fuzziesquirrel.com>
Tue, 6 Nov 2018 00:23:07 +0000 (19:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Nov 2018 15:18:28 +0000 (15:18 +0000)
commit22ed19292d160461042d4a2294fe2ec0b953873e
treec0cc558d93e133ea3b381deb04186c8bd25f1a06
parentb24a67217d82f225e76fbc2dfb70dd8e1a6ea215
systemd-systemctl-native: handle Install wildcards

Handle the %i wildcard appearing in a dependency in the Install section
of a template unit, e.g.

  $ cat foo@.service

  [Install]
  WantedBy=bar@%i.target

Using the real systemctl something like:

  $ systemctl enable foo@baz.service

will create a symlink in /etc/systemd/system/bar@baz.target.wants.
Detect wildcards in templates and make the appropriate substitution.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-systemctl/systemctl