NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/45679: aggravating behavior of rc scripts



>Number:         45679
>Category:       bin
>Synopsis:       aggravating behavior of rc scripts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 03 15:45:00 +0000 2011
>Originator:     David A. Holland
>Release:        NetBSD 5.99.58 (20111130)
>Organization:
>Environment:
System: NetBSD  5.99.58 NetBSD 5.99.58 (GENERIC) #1: Fri Dec  2 23:02:36 EST 
2011  
dholland@valkyrie:/blah/blah/blah/src/sys/arch/i386/compile/obj.i386/GENERIC 
i386
Architecture: i386
Machine: i386
>Description:

Suppose you want to test something nfs-related, so you try to start
nfsd without fiddling with rc.conf.

   # /etc/rc.d/rpcbind onestart
   Starting rpcbind.
   # /etc/rc.d/mountd onestart
   Starting mountd.

So far so good...

   # /etc/rc.d/nfsd onestart
   /etc/rc.d/nfsd: WARNING: $mountd is not enabled.

Well, that's not unreasonable...

   # ps auxww | grep nfsd
   #

...except it didn't actually start!

(1) if it's going to be a fatal error it should not say WARNING;

(2) for onestart it shouldn't be a fatal error, or, better, it should
check whether mountd is running rather than whether it's enabled.

grr.

>How-To-Repeat:

as above

>Fix:

dunno



Home | Main Index | Thread Index | Old Index