All of lore.kernel.org
 help / color / mirror / Atom feed
* empty /etc/exports causes nfs rc script to exit
@ 2003-02-03  0:31 Mark Goodwin
  2003-02-03  1:10 ` Neil Brown
  2003-02-03 18:02 ` H. J. Lu
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Goodwin @ 2003-02-03  0:31 UTC (permalink / raw)
  To: nfs


Is there some good reason why the nfs rc script exits if /etc/exports
is empty?  [ -s /etc/exports ] || exit 0

If an admin adds something to /etc/exports, they have to kick the
rc script too. Seems silly.

-- Mark



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: empty /etc/exports causes nfs rc script to exit
  2003-02-03  0:31 empty /etc/exports causes nfs rc script to exit Mark Goodwin
@ 2003-02-03  1:10 ` Neil Brown
  2003-02-03 18:02 ` H. J. Lu
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2003-02-03  1:10 UTC (permalink / raw)
  To: Mark Goodwin; +Cc: nfs

On Monday February 3, markgw@sgi.com wrote:
> 
> Is there some good reason why the nfs rc script exits if /etc/exports
> is empty?  [ -s /etc/exports ] || exit 0

Empty (or non-existant) /etc/exports means that you don't want to
export anything, so the relevant daemons aren't run at all.

> 
> If an admin adds something to /etc/exports, they have to kick the
> rc script too. Seems silly.

If you want to start a service that wasn't previously configured, then
running the rc script is the normal thing to do.

Put a comment in /etc/exports if you really want the daemons, but no
exports.

NeilBrown


> 
> -- Mark
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: empty /etc/exports causes nfs rc script to exit
  2003-02-03  0:31 empty /etc/exports causes nfs rc script to exit Mark Goodwin
  2003-02-03  1:10 ` Neil Brown
@ 2003-02-03 18:02 ` H. J. Lu
  1 sibling, 0 replies; 3+ messages in thread
From: H. J. Lu @ 2003-02-03 18:02 UTC (permalink / raw)
  To: Mark Goodwin; +Cc: nfs

On Mon, Feb 03, 2003 at 11:31:21AM +1100, Mark Goodwin wrote:
> 
> Is there some good reason why the nfs rc script exits if /etc/exports
> is empty?  [ -s /etc/exports ] || exit 0
> 
> If an admin adds something to /etc/exports, they have to kick the
> rc script too. Seems silly.
> 

We did

# echo "#" > /etc/exports

for this purpose.


H.J.


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-03 18:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-03  0:31 empty /etc/exports causes nfs rc script to exit Mark Goodwin
2003-02-03  1:10 ` Neil Brown
2003-02-03 18:02 ` H. J. Lu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.