[Pkg-sysvinit-devel] Bug#551555: mountnfs.sh: start should declare dependency on name resolver

Petter Reinholdtsen pere at hungry.com
Mon Oct 19 06:02:04 UTC 2009


[Ben Finney]
> When mounting NFS volumes, the ???mountnfs.sh??? script needs the
> name resolver to be started in order to resolve the NFS server's
> name. The init script should have a ???Required-Start??? field
> declaring a dependency on the name resolver service.

I agree.  Which name resolver service did you have in mind.

Unfortunately $named can not be listed as a dependency for
mountnfs.sh, as it would generate a dependency loop.  First of all,
all known implementations of $named start in rc2.d, while mountnfs.sh
need to happen in rcS.d/ if /usr/ is an NFS volume.  Second,
mountnfs.sh is part of $remote_fs, which all known implementations of
$named depend on.  For this to work the mountnfs.sh script need to be
split into one part executed from rcS.d/ taking care of mounting /usr/
(and perhaps other core file ystems), and another part executed from
rcS.d/ taking care of the rest, and several scripts in unrelated
packages need to move their scripts from rcS.d/ to rc2.d - rc5.d.  Not
an easy task.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-sysvinit-devel mailing list