Skip to main content
Topic: Runit: How to wait for network on fstab share mounts (Read 460 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Runit: How to wait for network on fstab share mounts

Hey guys,
I want to mount a network share (smb) on boot, I'm doing it in fstab.
It is not working right out of the box because network is not yet available when fstab is executed.
To overcame this, I set up a script that checks for network every 5 seconds, and executes "mount - a" when it finds that network is available.

My question is if is there a better / more accurate way of doing this using some kind of runit dependancy?

It's working this way, but i know it's not the right way of doing this, and if possible I'd like to learn something today :)

Thanks,
Miguel.