Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
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 at 14:05

1 Answer 1

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 at 9:24

Your Answer

 
discard

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.