<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi All,<br><br></div> I have a target t1, which has three services associated with it, t11, t12 and t13. The service dependencies After etc. I have in the individual t11, t12 and t13 unit files<br><br></div> I have another target t2, which has two service associated with it t21, t22. I want all units associated with target t2 to start only after all units in target t1 are ready.<br><br></div> So in t2.target , i have<br></div> Requires=t1.target<br></div> After=t1.target<br><br></div> and in the t21.service and t22.service, I have<br></div> Wants=t2.target<br><br></div>and in Install section <br></div> WantedBy=t2.target<br><br></div> But with this I find all the services that I want associated with t2, start right along with the services in t1.<br><br></div> If I change the t21.service and t22.service to include<br><br></div> Requires=t2.target<br></div> After=t2.target<br><br></div> Things work as expected, i.e. all services in t1.target get started and ready before services t21 and t22 are started<br><br></div> So I would like to know if this is the correct way to order the dependency on the target, because if say After=t2.target, though it is actually (at least my intention) is that this service is associated with t2.target.<br><br></div><div>I have also attached all the service and target files for reference.<br><br></div>Thanks<br></div>Jana<br><br><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div>