From owner-freebsd-current Wed Oct 30 13:38:16 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5883C37B401 for ; Wed, 30 Oct 2002 13:38:14 -0800 (PST) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91DA543E6E for ; Wed, 30 Oct 2002 13:38:13 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id QAA17954; Wed, 30 Oct 2002 16:38:12 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g9ULbgG24027; Wed, 30 Oct 2002 16:37:42 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15808.20774.147759.671084@grasshopper.cs.duke.edu> Date: Wed, 30 Oct 2002 16:37:42 -0500 (EST) To: Gordon Tetlow Cc: Tim Kientzle , current@freebsd.org Subject: Re: RCng Awkwardness In-Reply-To: <20021030200055.GA30253@roark.gnf.org> References: <3DC03815.2050003@acm.org> <20021030200055.GA30253@roark.gnf.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Gordon Tetlow writes: > On Wed, Oct 30, 2002 at 11:50:45AM -0800, Tim Kientzle wrote: > > I find the standard arguments used by RCng quite > > awkward. In particular, especially for people who > > have worked with SysV-style init scripts, it's > > rather surprising that "/etc/rc.d/nfsd stop" does > > not actually stop the nfsd process. Likewise, 'start' > > doesn't actually start the specified system. > > As one of the people that supposedly worked on this. I'm heartily in > favor of this. I've found this behavior to be quite annoying. I'll > see if I can put something together. If you want to help me out and > put together the patches, I'd be more than happy to commit them. > > -gordon Even more annoyingly, the RCng nfsd script ignores arguments specified in /etc/rc.conf. See the example below, where "nfsd" is my patched script, "nfsd.old" is what is in CVS now. Patch appended. % grep nfs /etc/rc.conf nfs_server_enable="YES" nfs_server_flags="-u -t -n 8 -h 172.31.193.10 -h 172.31.193.1" % ./nfsd.old stop nfsd not running? % sudo ./nfsd.old start Starting nfsd. % ps ax | grep nfsd | wc -l 5 %sudo ./nfsd.old stop Stopping nfsd. kill: 2903: No such process kill: 2905: No such process <4:33pm>whisper/gallatin:rc.d>ps ax | grep nfsd | wc -l 0 % sudo ./nfsd start Starting nfsd. % ps ax | grep nfsd | wc -l 9 % Note that the default script ignores the arguments -n 8 and starts only 4 nfsds. Can this be fixed, please? Thanks, Drew cvs diff nfsd Index: nfsd =================================================================== RCS file: /home/ncvs/src/etc/rc.d/nfsd,v retrieving revision 1.8 diff -u -r1.8 nfsd --- nfsd 12 Oct 2002 10:31:31 -0000 1.8 +++ nfsd 24 Oct 2002 23:57:27 -0000 @@ -13,6 +13,7 @@ name="nfsd" rcvar=`set_rcvar nfs_server` command="/usr/sbin/${name}" +load_rc_config $name case ${OSTYPE} in FreeBSD) @@ -51,5 +52,4 @@ return 0 } -load_rc_config $name run_rc_command "$1" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message