~openstack-charmers-next/charms/vivid/openstack-dashboard/trunk

Viewing all changes in revision 110.

  • Committer: David Ames
  • Date: 2016-03-08 15:56:41 UTC
  • Revision ID: david.ames@canonical.com-20160308155641-ykzhphmsqhhhl907
Add sleep between stop/start in restart_on_change

When restart_on_change runs service restart apache is not waiting for
its threads to terminate particularly due to WSGI being involved for
openstack-dashboard. When it attempts to restart the ports are already
in use and unavailable. This change works around this bug adding a sleep
time between stop and start to allow apache time to terminate its
threads.

Closes-Bug: #1545217
Related-Bug: #1552822

Change-Id: Ib5d4dee9a001b4554191abfdc7577ef739efd0f2

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: