From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: [OSX/Admin] How to create a custom boot script to mount a file
   Date: Thu, 15 May 2008 07:12:58 -0400
Msg# 1731
View Complete Thread (3 articles) | All Threads
Last Next
Greg Ercolano wrote:
> 4) Create a "StartupParameters.plist" file in that dir, eg:
> [..]
> ---- snip
> {
>   Description     = "Mounts the local file server";
>   Provides        = ("MountLocalFileServer");
>   Requires        = ("Network", "System Log", "Resolver");

    *** THE FOLLOWING IS FOR TIGER (10.4) AND OLDER
    *** THIS INFO DOES *NOT* APPLY TO LEOPARD (10.5)

    If you get errors in the /var/log/system.log like:

	NFS Portmap: RPC: Port mapper failure - RPC: Unable to send

    ..then edit your:

	/Library/StartupItems/MountLocalFileServer/StartupParameters.plist

    ..file, and change the "Requires" line to include "NFS", eg:

BEFORE: Requires = ("Network", "System Log", "Resolver");
 AFTER: Requires = ("Network", "System Log", "Resolver", "NFS");
                                                         ^^^^^

    This way your boot script won't be started until the client side
    NFS daemons have been started.

    "NFS" is what the System's own 'NFS' startup script supplies when
    starting the NFS daemons, so it's probably a good thing to
    'Require' if your system has an /System/Library/StartupItems/NFS directory.

Last Next