Am 12.01.2018 um 04:59 schrieb Andrei Borzenkov:
12.01.2018 03:47, 林自均 пишет:
How about adding an "--order" option to systemctl? With this option,
systemctl will sort those units by ordering dependencies before submitting
them.
And why does it matter? If unit A can be started without unit B, why
does it matter in which order they are started? If unit A can *not* be
started without unit B, it must tell so using Requires or Requisite.
What are you trying to achieve?
there is a difference between Requires/After
After is optional, means the service *can* work without the other *but*
if both are enabled there is a defined ordering at boot as well as at
shutdown
with your broken logic Before/After would be completly useless because
why would you care at boot time when you don't in case of restarts?
P.S.: fix your mail client
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel