How to delay mountd?

My server is exporting some folders through NFS. The server is running on ZFS however those folders are not mounted automatically, they are marked as legacy mountpoints and are mounted through a file in /usr/local/etc/fstab/ by one of the jail when the jail is starting.

So the problem is that those mountpoints are not available until later to the booting process. When the server is starting it prints out those messages to the console:

Code:
mountd(1109): bad exports list line [here is the export line from /etc/exports]

For each exported mountpoint. Once the server boots up I start the jails that haven't started yet and then the NFS exports become mountable. I would like to get rid of those message. Is it possible to delay starting mountd until a specific point during the boot process, e.g. 1 second after the boot has completed and the server shows the login prompt?
 
Hmm. Sounds similar to an issue that I had some time ago. You might want to give the new autofs(5) a shot. I posted some notes about how I set it up for my use case some time ago. I'll repost it here in a second.
 
Back
Top