I had a quick look at the systemd dbus API (which I assume is close to
what systemctl uses) and there are no easy way to queue multiple
"starts" into one job
There is a single StartUnit (+varient) method which can only take a
single unit. no queuing mechanism, way to create ajob without triggering
it or other workaround
So yes, to get this to work as expected a new API probably needs to be
added.
Alternatively, systemctl could create an Transient, temporary unit with
the correct relationship (Wants, Conflicts, ReloadPropagatedFrom) and
start that unit, pulling in the ones on the command line. Not sure if
that's a good approch. Just stating that it's possible...
Post by Simon McVittiecome on - nobody cares about this bullshit bingo about what are jobs, units
and services
Please try to be polite when you are in a situation where you could be
perceived as representing a community. Responses like this to discussion
of a technical issue do not help systemd's reputation, and using jargon
terms precisely is a useful way to describe how code works.
For what it's worth, I think I agree with the technical point you were
making, which (if I understand correctly) is that it would be better for
each "systemctl start" invocation to create a single transaction (job)
that will start all the units named on the command-line in an order
chosen by the systemd manager to respect their Before/After ordering.
Thanks,
smcv
_______________________________________________
systemd-devel mailing list
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
SMILE <http://www.smile.eu/>
20 rue des Jardins
92600 AsniÚres-sur-Seine
*Jérémy ROSEN*
Architecte technique
Responsable de l'expertise Smile-ECS
email ***@smile.fr <mailto:***@smile.fr>
phone +33141402967
url http://www.smile.eu
Twitter <https://twitter.com/GroupeSmile> Facebook
<https://www.facebook.com/smileopensource> LinkedIn
<https://www.linkedin.com/company/smile> Github
<https://github.com/Smile-SA>
Découvrez lâunivers Smile, rendez-vous sur smile.eu
<http://smile.eu/?utm_source=signature&utm_medium=email&utm_campaign=signature>
eco Pour la planÚte, n'imprimez ce mail que si c'est nécessaire