From 5c15badb1ca8c02ffbf667a7e41e56a9e1f0a7c0 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Sat, 14 Oct 2023 13:27:39 +0300 Subject: [PATCH] Improve cronie spec --- specs/cronie.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specs/cronie.spec b/specs/cronie.spec index 22dfe73a6..349481bed 100644 --- a/specs/cronie.spec +++ b/specs/cronie.spec @@ -175,6 +175,8 @@ if [[ $1 -eq 1 ]] ; then systemctl enable %{service_name}.service &>/dev/null || : fi +systemctl daemon-reload &>/dev/null || : + %preun if [[ $1 -eq 0 ]]; then systemctl --no-reload disable %{service_name}.service &>/dev/null || :