Skip to content

Commit

Permalink
fixes for start_services sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Nardecchia authored and Alessandro Nardecchia committed Apr 18, 2024
1 parent 60159f4 commit 8e7e8ba
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions imageroot/actions/configure-module/80start_services
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@ set -e
# Redirect any output to the journal (stderr)
exec 1>&2

# Enable and restart the service
systemctl --user enable odoo.service postgres.service odoo-app.service
systemctl --user restart odoo.service postgres.service odoo-app.service
# Enable and restart base service
systemctl --user enable odoo.service
systemctl --user restart odoo.service

# Let services be responsive, to run 90ldap
sleep 2

# Enable and restart the postgres service
systemctl --user enable postgres.service
systemctl --user restart postgres.service

# if first execution wait some time for postgres to load default DB
sleep 10

# Enable and restart the odoo-app service
systemctl --user enable odoo-app.service
systemctl --user restart odoo-app.service

# Let services be responsive, to run next 90ldap
sleep 5

0 comments on commit 8e7e8ba

Please sign in to comment.