From 6f2aaf7b0fa9fd9376561e9b6233b4d36de51da1 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Sun, 24 Sep 2017 15:10:36 -0400 Subject: systemd: only mention Before=apt-daily.service on debian based distros. Ordering on apt service should only be set up on Debian based distributions. This changes is really a net-zero in runtime result. But, mentioning apt on a rpm based distro could be confusing. --- systemd/cloud-final.service.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'systemd/cloud-final.service.tmpl') diff --git a/systemd/cloud-final.service.tmpl b/systemd/cloud-final.service.tmpl index fc01b891..e2b91255 100644 --- a/systemd/cloud-final.service.tmpl +++ b/systemd/cloud-final.service.tmpl @@ -4,9 +4,10 @@ Description=Execute cloud user/final scripts After=network-online.target cloud-config.service rc-local.service {% if variant in ["ubuntu", "unknown", "debian"] %} After=multi-user.target +Before=apt-daily.service {% endif %} Wants=network-online.target cloud-config.service -Before=apt-daily.service + [Service] Type=oneshot -- cgit v1.2.3