chiark / gitweb /
install: allow specifiers in WantedBy/RequiredBy/Alias
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Jan 2013 04:11:31 +0000 (23:11 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Jan 2013 00:01:41 +0000 (19:01 -0500)
commit7584d236eac91f9b7128b1eb08bddf18be2bce9f
tree734baeee461940fbcb12b13979d1d2541c3a837a
parent0591220f339c313761f9a208e88fb719db566993
install: allow specifiers in WantedBy/RequiredBy/Alias

This allows one templated unit to refer to another templated unit
at installation time.

Examples:

> grep WantedBy ~/.config/systemd/user/mpop@.timer
WantedBy=services@%i.target

> srv disable mpop@iit.timer
rm '/home/alxchk/.config/systemd/user/services@iit.target.wants/mpop@iit.timer'
> srv enable mpop@iit.timer
ln -s '/home/alxchk/.config/systemd/user/mpop@.timer' '/home/alxchk/.config/systemd/user/services@iit.target.wants/mpop@iit.timer'

Based-on-patch-by: Oleksii Shevchuk <alxchk@gmail.com>
Makefile.am
man/systemd.unit.xml
src/core/unit-printf.c
src/shared/install-printf.c [new file with mode: 0644]
src/shared/install-printf.h [new file with mode: 0644]
src/shared/install.c
src/shared/install.h