<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 5, 2015, at 14:29, David Timothy Strauss <<a href="mailto:david@davidstrauss.net" class="">david@davidstrauss.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">If you only want one instance running, why not just create one service and reconfigure/restart it?</p></div></blockquote>Because the service dependencies are totally different.</div><div><br class=""></div><div><blockquote type="cite" class=""><div class="">
<br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Oct 5, 2015, 09:04 Johannes Ernst <<a href="mailto:johannes.ernst@gmail.com" class="">johannes.ernst@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a foo@.service. When started as<br class="">
        systemctl start foo@abc<br class="">
I’d like all other currently active foo@… services to stop, and vice versa. All of the foo@.services are supposed to be mutually exclusive with each other.<br class="">
<br class="">
In foo@.service, I attempted:<br class="">
        Conflicts: foo@.service<br class="">
but that does not seem to do the trick (Starting foo@abc produces "Dependency <a href="mailto:Conflicts=foo@abc.service" class="">Conflicts=foo@abc.service</a> dropped”)<br class="">
<br class="">
I’d like to avoid having to enumerate foo@abc, foo@def etc. in the Conflicts section.<br class="">
<br class="">
Ideas?<br class="">
<br class="">
Thanks,<br class="">
<br class="">
<br class="">
<br class="">
Johannes.<br class="">
<br class="">
_______________________________________________<br class="">
systemd-devel mailing list<br class="">
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank" class="">systemd-devel@lists.freedesktop.org</a><br class="">
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank" class="">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></body></html>