Date: Wed, 30 Oct 2002 16:37:42 -0500 (EST) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Gordon Tetlow <gordont@gnf.org> Cc: Tim Kientzle <kientzle@acm.org>, current@freebsd.org Subject: Re: RCng Awkwardness Message-ID: <15808.20774.147759.671084@grasshopper.cs.duke.edu> In-Reply-To: <20021030200055.GA30253@roark.gnf.org> References: <3DC03815.2050003@acm.org> <20021030200055.GA30253@roark.gnf.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15808.20774.147759.671084>