Why not enable templated units?

Michael Biebl biebl at debian.org
Thu Oct 2 01:02:49 BST 2014


Am 02.10.2014 um 01:23 schrieb Ryan Kuester:
> Hi all,
> 
> dh_systemd_enable in package init-system-helpers skips enabling
> templated unit files (i.e., those with a "@" in their name), saying it's
> not useful to do so [1]. Is that really true?

Yes, I think so. Template files themselves are usually not enabled, but
instances of them. So it doesn't make sense to enable foo at .service, but
it might make sense to enable foo at bar.service.

> I'm finding it useful in a templated service unit which declares a
> WantedBy to another templated service unit. 'systemctl enable $service'
> happily installs the expected symlink, and this construction causes both
> services to be instantiated with the instance name substituted. 

Do you have a concrete example?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141002/021ccd58/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list