[systemd-devel] Requires and After
Michael Chapman
mike at very.puzzling.org
Wed Jan 2 10:36:19 UTC 2019
On Wed, 2 Jan 2019, Reindl Harald wrote:
> Am 02.01.19 um 09:14 schrieb Michael Chapman:
> > I have two services on my system, A.service and B.service, where A.service
> > Wants=B.service but is ordered Before=B.service. The reason for this is
> > that when I start A I want B to be automatically started too, but B cannot
> > function without A being active.
>
> this is insane
Please reduce your hyperbole.
> when B cannot work without A then B wants A and not the other way
I should have probably been more precise with "cannot function". B can
actually function without A. It's just useless if it were to do so.
Moreover, the fact that B is started as a side-effect of starting A is
important. I _do not_ want to have to start B explicitly. As I noted in
another email, I've got some systems where B does not even exist. Having
every system just have an A.timer that starts A (and on some of them, B as
well) is very convenient.
More information about the systemd-devel
mailing list