<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 8, 2014 at 4:39 PM, Zbigniew Jędrzejewski-Szmek <span dir="ltr"><<a href="mailto:zbyszek@in.waw.pl" target="_blank">zbyszek@in.waw.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Oct 08, 2014 at 06:30:51AM -0700, terrygalant.lists@fastest.cc wrote:<br>
> Hi<br>
><br>
> I have 2 installed instances of a single daemon.<br>
><br>
> 1 is from distro-installed packages, installed into standard default OS locations with unit files in /usr/lib/systemd/system/.<br>
><br>
> The other is installed under /opt, with unit files currently in /opt/mydaemon/systemd/system/, which can be (un)symlinked as needed into /etc/systemd/system/multi-user.target.wants/ to disable or enable.<br>
><br>
> I want to be able to occasionally toggle between use of the 2.<br>
><br>
> Is the right systemd way to do manage this toggle to just name the 2 instances' unit files differently, put a Conflicts= in each for the other, and just use 'enable' for whichever I want active?<br>
<br>
</span>That would work.<br>
<br>
You can also make a symlink from /etc/systemd/system/xxx.service to<br>
either of the two files and manage it by hand, calling systemctl<br>
daemon-reload afterwards. I think this should work.<br></blockquote><div><br></div><div>Hmm, isn't this basically the same as adding identical [Install] Alias= entries, and using `systemctl enable -f` to manage them? </div></div><div><br></div>-- <br><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div>
</div></div>