Bug 55509

Summary: Allow %i at .path/Unit=
Product: systemd Reporter: Oleksii Shevchuk <public.avatar>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: enhancement    
Priority: medium CC: zbyszek
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.