'Twas brillig, and Michal Schmidt at 16/05/12 12:51 did gyre and gimble: > On 05/16/2012 01:07 PM, Colin Guthrie wrote: >> This thread went a little tangential, so I'd like to bring it back to >> the "problem" stated here. >> >> Firstly, that was not my understanding of how things are supposed to >> work, but perhaps Lennart or Kay can clarify. >> >> I thought that the actual end point of the symlink was not all that >> important... >> >> e.g. if I have: >> >> /usr/lib/systemd/system/[email protected] >> /etc/lib/systemd/system/[email protected] >> /etc/lib/systemd/system/multi-user.target.wants/[email protected] -> >> /usr/lib/systemd/system/[email protected] >> >> I thought that the unit file /etc/lib/systemd/system/[email protected] was >> still the one used. i.e. the symlink is merely indicative of whether the >> service is enabled or not, and the actual physical file that it points >> to is not relevant. >> >> i.e. The .wants symlink only really states "I'm enabled as an instance >> of [email protected]" and then the normal inheritance rules of >> [email protected] resolution apply *after* that, i.e. [email protected] in >> /etc/... overrides the one in /lib/... >> >> This is maybe not intuitive when looking solely at the symlinks >> themselves, but it is when you think about what they represent. > > Colin, > > your description matches my understanding. In my test it works as > expected with ordinary units, but not if templates are involved. > I consider it a bug.
Ahhh right. Yeah I would consider that a bug too if the same logic does not apply to template units as with regular ones. Thanks for the clarifications. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/ _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
