Bug 221011 - [autofs] automounter starts late
Summary: [autofs] automounter starts late
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.0-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: Edward Tomasz Napierala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-26 04:17 UTC by G. Paul Ziemba
Modified: 2018-04-16 16:34 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description G. Paul Ziemba 2017-07-26 04:17:28 UTC
I recently switched from amd to autofs and found that some of my boot-time daemons did not find their nfs-mounted files available.

The dependencies given in /etc/rc.d/automountd and /etc/rc.d/automount cause rcorder to place them last. amd's position in the order is much earlier.

Would it be feasible to change the REQUIRE parameters in /etc/rc.d/automountd from "DAEMON" to match those in amd, namely, "rpcbind ypset nfsclient FILESYSTEMS ldconfig"?

I use NIS for automounter maps. Are there further considerations for systems that use LDAP that influenced the use of DAEMON?
Comment 1 commit-hook freebsd_committer 2017-11-04 15:53:18 UTC
A commit references this bug:

Author: trasz
Date: Sat Nov  4 15:52:17 UTC 2017
New revision: 325400
URL: https://svnweb.freebsd.org/changeset/base/325400

Log:
  Make autofs(5) rc scripts run earlier, matching those for amd(8).

  This helps when you have some daemons that need to access automounted shares.

  PR:		221011
  MFC after:	2 weeks

Changes:
  head/etc/rc.d/automount
  head/etc/rc.d/automountd
  head/etc/rc.d/autounmountd
Comment 2 commit-hook freebsd_committer 2018-04-16 15:54:50 UTC
A commit references this bug:

Author: trasz
Date: Mon Apr 16 15:54:39 UTC 2018
New revision: 332584
URL: https://svnweb.freebsd.org/changeset/base/332584

Log:
  MFC r325400:

  Make autofs(5) rc scripts run earlier, matching those for amd(8).

  This helps when you have some daemons that need to access automounted shares.

  PR:		221011

Changes:
_U  stable/11/
  stable/11/etc/rc.d/automount
  stable/11/etc/rc.d/automountd
  stable/11/etc/rc.d/autounmountd