Bug 55509 - Allow %i at .path/Unit=
Summary: Allow %i at .path/Unit=
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 19:26 UTC by Oleksii Shevchuk
Modified: 2013-06-03 19:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Oleksii Shevchuk 2012-10-01 19:26:09 UTC
At this moment (current git, 193) systemd doesn't allow templated parts Unit field in path units. So it's impossible to start templated target with path unit
Comment 1 Zbigniew Jedrzejewski-Szmek 2013-06-03 19:02:38 UTC
I'm not sure since how long exactly, but it is now fixed (v204-102-g02b9e96).

% cat /home/zbyszek/.config/systemd/user/one.path
[Path]
PathExists=/tmp/one
Unit=templ@one.service

% cat /home/zbyszek/.config/systemd/user/templ@.service
[Service]
ExecStart=/bin/true %I

% systemctl --user start one.path

% touch /tmp/one

one.path got triggered.
Trying to enqueue job templ@one.service/start/replace
Installed new job templ@one.service/start as 24
Enqueued job templ@one.service/start as 24
one.path changed waiting -> running
About to execute: /bin/true one
Forked /bin/true as 4335
templ@one.service changed dead -> running
Job templ@one.service/start finished, result=done


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.