From owner-cvs-all@FreeBSD.ORG Fri Aug 17 15:07:05 2007 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0C1A16A421 for ; Fri, 17 Aug 2007 15:07:05 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id 8549D13C48D for ; Fri, 17 Aug 2007 15:07:05 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so955361pyb for ; Fri, 17 Aug 2007 08:07:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AgeuuNV3yIg0L5WhVmDW3qaef0/GzkB1+bk8WC3OGmUoRRboRs9BaKhG8n3aWAtKbzJLi22jI2z5asXZTAjqry/Vct1613nfXKn/tmu+dbXxXFne3dy12e17IlDxXnzFaPBzwlttpQ5xlZhk1vLZGOTegFzUwxhol/DPxNYeyAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UCCuXPwaCVgcDV5lQU9hf7fdf9w9JdEZY/kP4nMsft0ErDVzUd5ibl6a0kJWVqx5KxL9yjDlLqIH5Sa9EYTYpl5oKLcsX/N7+1qC7/ypTOU6ybtqRU3fvd53eYYJ9Iu7XHsNFXO0ULV2kptA/LbU/7sb6b6CylAjE2d9rDFB3LM= Received: by 10.64.142.10 with SMTP id p10mr5547173qbd.1187363224403; Fri, 17 Aug 2007 08:07:04 -0700 (PDT) Received: by 10.64.185.10 with HTTP; Fri, 17 Aug 2007 08:07:04 -0700 (PDT) Message-ID: <6eb82e0708170807n4ef2755n2763670ab1b8d1c4@mail.gmail.com> Date: Fri, 17 Aug 2007 23:07:04 +0800 From: "Rong-en Fan" To: "Mike Makonnen" In-Reply-To: <200708170758.l7H7wRbV097007@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200708170758.l7H7wRbV097007@repoman.freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/etc/rc.d Makefile lockd nfslocking statd X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2007 15:07:06 -0000 On 8/17/07, Mike Makonnen wrote: > mtm 2007-08-17 07:58:27 UTC > > FreeBSD src repository > > Modified files: > etc/rc.d Makefile lockd nfslocking statd > Log: > The rc.d/nfslocking file controls two servers: rpc.statd and rpc.lockd. It worked well > in most cases, except one. The 'restart' case was not working as expected. Specifically, > it would stop both lockd and statd, but it would restart only statd (which appears first > in the script). This is because rc.subr(8) contains code to guard against infinite > recursion in the 'restart' casae. > > To fix this use the traditional approach of controlling only one server from one script by > breaking out rc.d/nfslocking into its contituent parts: rc.d/lockd and rc.d/statd. Keep > rc.d/nfslocking around but don't include it in the boot rcorder(8)ing. > > PR: conf/107316 > Approved by: re (bmah) > MFC after: 2 weeks Hi, It seems that you forget to set $name in these two scripts: Clearing /tmp (X related). /etc/rc: ERROR: USAGE: load_rc_config name /etc/rc: ERROR: USAGE: load_rc_config name Starting local daemons: Regards, Rong-En Fan > > Revision Changes Path > 1.82 +2 -2 src/etc/rc.d/Makefile > 1.16 +2 -27 src/etc/rc.d/lockd > 1.15 +1 -1 src/etc/rc.d/nfslocking > 1.16 +2 -27 src/etc/rc.d/statd > _______________________________________________ > cvs-src@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/cvs-src > To unsubscribe, send any mail to "cvs-src-unsubscribe@freebsd.org" >