Skip to content

Commit 4defc1b

Browse files
committed
Try the other approach to see unit logs
1 parent 99f2941 commit 4defc1b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/st2/rpm/postinst_script.spec

-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ set -e
22

33
# Reload systemd to run generators for unit and socket files.
44
systemctl daemon-reload
5-
6-
systemctl restart st2api st2auth st2stream
7-
journalctl -eu st2api

rpmspec/helpers.spec

+8-1
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,16 @@
8585
# Service post stage action
8686
# enables used to enforce the policy, which seems to be disabled by default
8787
#
88+
## Disabled to run with more verbose output
89+
##%define service_post() \
90+
## %{expand: %systemd_post %%{?*}} \
91+
## systemctl --no-reload enable %{?*} >/dev/null 2>&1 || : \
92+
##%{nil}
93+
8894
%define service_post() \
8995
%{expand: %systemd_post %%{?*}} \
90-
systemctl --no-reload enable %{?*} >/dev/null 2>&1 || : \
96+
systemctl --no-reload enable %{?*} \
97+
systemctl status %{?*} \
9198
%{nil}
9299

93100
# Service preun stage action

0 commit comments

Comments
 (0)