Skip to content

Commit

Permalink
Try the other approach to see unit logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Oct 10, 2022
1 parent 99f2941 commit 4defc1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions packages/st2/rpm/postinst_script.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 8 additions & 1 deletion rpmspec/helpers.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4defc1b

Please sign in to comment.