File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11set -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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments