From 502e8e075043220597be3a3da379ddb28442d559 Mon Sep 17 00:00:00 2001 From: Daijiro Fukuda Date: Mon, 9 Dec 2024 17:49:30 +0900 Subject: [PATCH] rpm: revert suppressing systemd_post macro We don't need to suppress this macro because this macro handles preset, not restart. Signed-off-by: Daijiro Fukuda --- fluent-package/yum/fluent-package.spec.in | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/fluent-package/yum/fluent-package.spec.in b/fluent-package/yum/fluent-package.spec.in index ec5f56c29..c3b50eb8d 100644 --- a/fluent-package/yum/fluent-package.spec.in +++ b/fluent-package/yum/fluent-package.spec.in @@ -200,15 +200,7 @@ fi %systemd_preun @SERVICE_NAME@.service %post -. %{_sysconfdir}/sysconfig/@SERVICE_NAME@ -echo "post FLUENT_PACKAGE_SERVICE_RESTART: $FLUENT_PACKAGE_SERVICE_RESTART" -if [ "$FLUENT_PACKAGE_SERVICE_RESTART" = "auto" ]; then - echo "Suppress auto restart in auto mode..." -elif [ "$FLUENT_PACKAGE_SERVICE_RESTART" = "manual" ]; then - echo "Suppress auto restart in manual mode ..." -else - %systemd_post @SERVICE_NAME@.service -fi +%systemd_post @SERVICE_NAME@.service if [ $1 -eq 1 ]; then if [ -d /etc/@COMPAT_PACKAGE_DIR@ -a ! -h /etc/@COMPAT_PACKAGE_DIR@ ]; then touch %{v4migration}