<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 10, 2015, at 22:54, Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com" class="">arvidjaar@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">11.10.2015 06:09, Johannes Ernst пишет:</span><br style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I’m trying to set up two different Avahi configurations, using foo.service and bar.service.<br class=""><br class="">Error message:<br class=""><br class="">Two services allocated for the same bus name org.freedesktop.Avahi, refusing operation.<br class=""><br class="">On the face of it, that seems to be correct: indeed foo.service and bar.service both declare<br class=""><br class="">[Service]<br class="">Type=dbus<br class="">BusName=org.freedesktop.Avahi<br class=""><br class="">However, I have in foo.service:<br class=""><br class="">[Unit]<br class="">Conflicts=bar.service<br class=""><br class="">and vice versa, so they will never be active at the same time. Is there some way to make this work? [I don’t know who might want to talk to Avahi via dbus, but it makes sense that they should find either foo or bar, depending on which configuration is currently up, so I don’t really want to rename this]<br class=""><br class=""></blockquote><br style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">It sounds like you try to start both of them at the same time, is it correct?</span><br style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>No: Just doing a “systemctl status foo” or a “systemctl daemon-reload" produces foo.service: "Two services allocated for the same bus name org.freedesktop.Avahi, refusing operation.”</div><div><br class=""></div><div>It seems the error checking is a bit too aggressive, as the Conflicts should make it impossible that a dbus conflict ever occurs? Or is there a workaround?</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><br style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: LucidaGrande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Cheers,<br class=""><br class=""><br class=""><br class="">Johannes.<br class=""><br class=""><br class="">_______________________________________________<br class="">systemd-devel mailing list<br class=""><a href="mailto:systemd-devel@lists.freedesktop.org" class="">systemd-devel@lists.freedesktop.org</a><br class=""><a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" class="">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a></blockquote></div></blockquote></div><br class=""></body></html>