Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Ubuntu 12.04 or 14.04, how can I prevent an upstart service from starting until a couple of network volumes (GlusterFS) get successfully mounted?

share|improve this question
Use the start on conditions e.g. start on (net-device-up IFACE!=lo and started service-a and started service-b) – HBruijn Jun 18 '14 at 14:05

According to the upstart cookbook/intro linked here, upstart will emit a 'filesystem' event when all mounts are completed. You should be able to "start on filesystem" the required service to achieve what you're looking for, unless you're only wanting certain (but not all) filesystems to be mounted prior to service invocation?

share|improve this answer
I already have start on filesystem, but the service is started even when my GlusterFS volumes are not mounted. I think it doesn't include all filesystems. – J. Pablo Fernández Jul 10 '14 at 9:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.