How to instruct launchd to wait for a volume to mount?

OS X, 10.8.x

We use the start pls file (in / Library / LaunchDaemons) to start the server application whenever the machine starts. If the application does not run on the system volume, and not on another internal volume, this disk is not always mounted on time, and the task is updated every 10 seconds.

Is there a way to wait for this file system object to become available? (may be?)

Thanks Akos

+4
source share
1 answer

Yes. You can use KeepAlive with PathState . Skip the volume path (/ Tom / mavericks) in PathState.

PathState. . ,             , . false,             . ,             .

+3

All Articles