Poettering: The Biggest Myths
Posted Feb 7, 2013 12:41 UTC (Thu) by khim
In reply to: Poettering: The Biggest Myths
Parent article: Poettering: The Biggest Myths
So, go on, how do you expose that dependency in a way systemd can handle it. Tell me.
Well, as you've suggested: DBus activation looks like a natural fit for such a use case - and since systemd handles it just fine... I don't see what's your problem.
I'm just a tad sceptical of the wonder claims being made for socket activation based dependency resolution.
Socket activation covers 90% of usecases, but there are other ways to activate service. And the important thing of systemd is that they all can be used simultaneously. You can start some daemon at specific time (using time-based activation) and when your a leaving specific area (D-Bus based activation) and when some other service needs this particular daemon (socket-based activation). They don't conflict and handled correctly in all cases.
Socket activation is there to track dependencies between services on your own system: it's the simplest one to use and most robust one. But there are other to handle "smoke signals", too.
to post comments)