Skip to content

Commit

Permalink
Remove attempt to restart services via post installation script for R…
Browse files Browse the repository at this point in the history
…PM packages.
  • Loading branch information
nzlosh committed Oct 10, 2022
1 parent b89380c commit 11c3c76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 1 addition & 5 deletions packages/st2/rpm/postinst_script.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
set -e

# Reload systemd to run generators for unit and socket files.
systemctl daemon-reload >/dev/null 2>&1 || true

# Enable services created by systemd generator
systemctl enable st2api st2auth st2stream >/dev/null 2>&1 || true
systemctl start st2api st2auth st2stream >/dev/null 2>&1 || true
systemctl daemon-reload
5 changes: 3 additions & 2 deletions packages/st2/rpm/st2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ Conflicts: st2common
%pre
%include rpm/preinst_script.spec

# Execute postinst_script before start post install services so the generators have created .service and .socket files.
%post
%service_post st2actionrunner st2api st2stream st2auth st2notifier st2workflowengine
%include rpm/postinst_script.spec
%service_post st2api st2stream st2auth st2actionrunner st2notifier st2workflowengine
%service_post st2rulesengine st2timersengine st2sensorcontainer st2garbagecollector
%service_post st2scheduler
%include rpm/postinst_script.spec

%preun
%service_preun st2actionrunner %{worker_name} st2api st2stream st2auth st2notifier st2workflowengine
Expand Down

0 comments on commit 11c3c76

Please sign in to comment.