Hi All,

 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

 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.

 So in t2.target , i have
 Requires=t1.target
 After=t1.target

 and in the t21.service and t22.service, I have
 Wants=t2.target

and in Install section
 WantedBy=t2.target

 But with this I find all the services that I want associated with t2,
start right along with the services in t1.

 If I change the t21.service and t22.service to include

 Requires=t2.target
 After=t2.target

 Things work as expected, i.e. all services in t1.target get started and
ready before services t21 and t22 are started

 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.

I have also attached all the service and target files for reference.

Thanks
Jana

Attachment: t1.target
Description: Binary data

Attachment: t2.target
Description: Binary data

Attachment: t11.service
Description: Binary data

Attachment: t12.service
Description: Binary data

Attachment: t13.service
Description: Binary data

Attachment: t21.service
Description: Binary data

Attachment: t22.service
Description: Binary data

_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to