From 1cc15d7923d8936bc96b2f7e70c6b755df2f06da Mon Sep 17 00:00:00 2001 From: Erik Berg Date: Thu, 21 Jan 2021 18:08:10 +0100 Subject: [PATCH] Make systemd.service more consistent This file doesn't need to change based on the whims of which order the after_targets decide to jumble themselves into. By sorting the after_targets we get less changes. Change-Id: I7cba791c6d6d90390e5adaf63a4797cbc320cbc5 --- templates/systemd-service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/systemd-service.j2 b/templates/systemd-service.j2 index 023577b..e6ef303 100644 --- a/templates/systemd-service.j2 +++ b/templates/systemd-service.j2 @@ -3,7 +3,7 @@ [Unit] Description={{ item.service_name }} service {% set after_targets = item.after_targets | default(systemd_after_targets) %} -{% for target in after_targets %} +{% for target in after_targets | sort %} After={{ target }} {% endfor %} {% for item in systemd_unit_docs %}