From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/807 Path: news.gmane.org!not-for-mail From: TheOldFellow Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: rpc.nfsd, rpc.mountd Date: Tue, 17 May 2005 13:54:41 +0100 Message-ID: <4289E991.3040608@gmail.com> References: <200502191502.39778.harmend@planet.nl> <427B828E.8080501@109bean.org.uk> <20050517122528.16814.qmail@93361de9ea22df.315fe32.mid.smarden.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116334636 23469 80.91.229.2 (17 May 2005 12:57:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 May 2005 12:57:16 +0000 (UTC) Original-X-From: supervision-return-1043-gcsg-supervision=m.gmane.org@list.skarnet.org Tue May 17 14:57:13 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DY1aM-0005MI-56 for gcsg-supervision@gmane.org; Tue, 17 May 2005 14:54:10 +0200 Original-Received: (qmail 822 invoked by uid 76); 17 May 2005 12:55:06 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 816 invoked from network); 17 May 2005 12:55:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:x-enigmail-version:x-enigmail-supports:content-type:content-transfer-encoding:from; b=CpNYt7aVP/8afYTE8dkawgMJhJs3AskBLkWjHvHVAbeFyvkVBzjCpY4WK0Lm4JHcf0SQOkOtxuqVDOTXjV60TEouEP660QQ8F5yrrxrBbJz9vo9oU1WQpgzo9jRj91D7V6wgVPPRJZxprXJMw8U1xB+2anDU6URF4D1L4fszRDc= User-Agent: Mozilla Thunderbird 1.0 (X11/20050511) X-Accept-Language: en-us, en Original-To: supervision@list.skarnet.org In-Reply-To: <20050517122528.16814.qmail@93361de9ea22df.315fe32.mid.smarden.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Xref: news.gmane.org gmane.comp.sysutils.supervision.general:807 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:807 Gerrit Pape wrote: > On Fri, May 06, 2005 at 03:43:26PM +0100, Richard A Downing FBCS CITP wrote: > >>H.M. Dijkstra wrote: > > Hi, looks like the mountd run script on the web page isn't accurate, it > should 'exec' into rpc.mountd, e.g.: > > #!/bin/sh > exec 2>&1 > RPCNFSDCOUNT=8 # Number of servers to be started up by default > RPCMOUNTDOPTS=-F > exportfs -r > rpc.nfsd -- $RPCNFSDCOUNT > rpcinfo -u localhost nfs 3 >/dev/null 2>&1 || \ > RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" > exec rpc.mountd $RPCMOUNTDOPTS > > Stopping the service will still leave the nfsd (and lockd) threads > running though. I don't like the pid-guessing applications like pidof > or start-stop-daemon, a `rpc.nfsd -- 0` in ./finish maybe can help here. > > HTH, Gerrit. > Gerrit, I'd reached the same conclusions. There are my new scripts for LFS-6. run: ------------------------ #!/bin/bash exec 2>&1 # Make sure the statd service is running. # (the statd service should ensure portmap is running first) svwaitup /var/service/statd # Get the nfs service parameters from the LFS standard file # this sets some envars. source /etc/sysconfig/nfs-server # Re-export all directories in /etc/exports /sbin/exportfs -ra > /dev/null # start some nfsd threads /sbin/rpc.nfsd -- $PROCESSES # Start the rpc.mountd daemon exec /sbin/rpc.mountd --foreground ------------------------ finish: ------------------------ #!/bin/sh exec 2>&1 # shut down the nfsd threads. rpc.nfsd -- 0 ------------------------ R.