The correct way todo this with upstart is in the pre-start script -
something along these lines:

if status mysql 2>/dev/null; then
  start wait-for-state WAITER=glance-registry WAIT_FOR=mysql STATE=running
fi

What would be even better would be if glance-registry actually re-tried
to connect to the mysql/postgresql database - this would deal with the
services not being on the same machine as well.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/950942

Title:
  glance-registry upstart should also include 'started' for mysql/pgsql

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glance/+bug/950942/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to