From 93ee6b266e0a6e0c3d82951cb518dfd05a46e7a4 Mon Sep 17 00:00:00 2001 From: Chad Miller Date: Mon, 9 Jul 2018 20:15:34 +0000 Subject: [PATCH] Avoid deadlock with systemctlreload-thispackage and Wants: cloud-final-which-called-us-to-reload Wants: and After: do indeed indicate a soft dependency on the existentiality of a package (cloud-init), but not on the state of whether it has begun running and finished running. If it exists at all, then After: will There is no mechanism built-in for either allowing update-motd not to depend on cloud-init existing, or asking cloud-init to run things that start update-motd and not hang on cloud-init having finished. --- SOURCES/update-motd.service | 3 +-- SPECS/update-motd.spec | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/SOURCES/update-motd.service b/SOURCES/update-motd.service index f91e0bc..01082b8 100644 --- a/SOURCES/update-motd.service +++ b/SOURCES/update-motd.service @@ -1,7 +1,6 @@ [Unit] Description=Dynamically Generate Message Of The Day -After=network-online.target cloud-final.service -Wants=cloud-final.service +After=network-online.target [Service] Type=oneshot diff --git a/SPECS/update-motd.spec b/SPECS/update-motd.spec index 2ad2318..14a1710 100644 --- a/SPECS/update-motd.spec +++ b/SPECS/update-motd.spec @@ -1,6 +1,6 @@ Name: update-motd -Version: 1.1.1 -Release: 2%{?dist} +Version: 1.1.2 +Release: 1%{?dist} License: ASL 2.0 Summary: Framework for dynamically generating MOTD Group: System Environment/Base