delay init.d script until network filesystem is available
I'm having some difficulty starting a service from an init.d script. It relies on the availability of a network filesystem (glusterfs) which is mounted from fstab. The service starts before the filesystem is up, and crashes.
I've tried adding "# Required-Start: $remote_fs" to the service init.d script, and delaying it by changing the ordering with "update-rc.d service defaults 90", but neither seems to work. If I add a "sleep 10" to the script, that works, but it feels wrong.
Is there some way to get the ordering right? To delay starting the service until after everything in fstab is ready to go?
The OS is debian lenny, with glusterfs 3.0.5 from backports.
|