diff --git a/packages/st2/rpm/postinst_script.spec b/packages/st2/rpm/postinst_script.spec index 39161aee..d49c4179 100644 --- a/packages/st2/rpm/postinst_script.spec +++ b/packages/st2/rpm/postinst_script.spec @@ -2,6 +2,3 @@ set -e # Reload systemd to run generators for unit and socket files. systemctl daemon-reload - -systemctl restart st2api st2auth st2stream -journalctl -eu st2api diff --git a/rpmspec/helpers.spec b/rpmspec/helpers.spec index ee7bcff2..0dcfdf18 100644 --- a/rpmspec/helpers.spec +++ b/rpmspec/helpers.spec @@ -85,9 +85,16 @@ # Service post stage action # enables used to enforce the policy, which seems to be disabled by default # +## Disabled to run with more verbose output +##%define service_post() \ +## %{expand: %systemd_post %%{?*}} \ +## systemctl --no-reload enable %{?*} >/dev/null 2>&1 || : \ +##%{nil} + %define service_post() \ %{expand: %systemd_post %%{?*}} \ - systemctl --no-reload enable %{?*} >/dev/null 2>&1 || : \ + systemctl --no-reload enable %{?*} \ + systemctl status %{?*} \ %{nil} # Service preun stage action