Skip to content

Commit 11c3c76

Browse files
committed
Remove attempt to restart services via post installation script for RPM packages.
1 parent b89380c commit 11c3c76

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
set -e
22

33
# Reload systemd to run generators for unit and socket files.
4-
systemctl daemon-reload >/dev/null 2>&1 || true
5-
6-
# Enable services created by systemd generator
7-
systemctl enable st2api st2auth st2stream >/dev/null 2>&1 || true
8-
systemctl start st2api st2auth st2stream >/dev/null 2>&1 || true
4+
systemctl daemon-reload

packages/st2/rpm/st2.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ Conflicts: st2common
8585
%pre
8686
%include rpm/preinst_script.spec
8787

88+
# Execute postinst_script before start post install services so the generators have created .service and .socket files.
8889
%post
89-
%service_post st2actionrunner st2api st2stream st2auth st2notifier st2workflowengine
90+
%include rpm/postinst_script.spec
91+
%service_post st2api st2stream st2auth st2actionrunner st2notifier st2workflowengine
9092
%service_post st2rulesengine st2timersengine st2sensorcontainer st2garbagecollector
9193
%service_post st2scheduler
92-
%include rpm/postinst_script.spec
9394

9495
%preun
9596
%service_preun st2actionrunner %{worker_name} st2api st2stream st2auth st2notifier st2workflowengine

0 commit comments

Comments
 (0)