[systemd-devel] Requires and After
Michael Chapman
mike at very.puzzling.org
Wed Jan 2 09:02:19 UTC 2019
On Wed, 2 Jan 2019, Olaf van der Spek wrote:
> On Wed, Jan 2, 2019 at 9:14 AM Michael Chapman <mike at very.puzzling.org> wrote:
> > > What good is an activation dependency without an ordering dependency?
> >
> > The problem is that it's not necessarily clear _which_ ordering dependency
> > is required. systemd can't just assume one way or the other.
> >
>
> > 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.
>
> And A can't function without B being active? So basically a circular dependency?
No, not a circular dependency. A can function without B. I just want B
to start whenever A starts, but I want B to start _after_ A starts.
More information about the systemd-devel
mailing list