From pirzyk@freebsd.org  Sun Feb  6 16:42:54 2011
Return-Path: <pirzyk@freebsd.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 826641065673
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Feb 2011 16:42:54 +0000 (UTC)
	(envelope-from pirzyk@freebsd.org)
Received: from zoot.intenex.net (zoot.intenex.net [216.93.182.12])
	by mx1.freebsd.org (Postfix) with ESMTP id 65BDB8FC18
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  6 Feb 2011 16:42:54 +0000 (UTC)
Received: from [192.168.1.34] (209-6-36-209.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com [209.6.36.209])
	(authenticated bits=0)
	by zoot.intenex.net (8.13.8/8.13.8) with ESMTP id p16GUsnq008873
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 6 Feb 2011 10:30:55 -0600
Message-Id: <D1A0E657-254F-4836-8203-23933CB95430@freebsd.org>
Date: Sun, 6 Feb 2011 11:30:44 -0500
From: Jim Pirzyk <pirzyk@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: statd and lockd fail to start

>Number:         154554
>Category:       conf
>Synopsis:       [rc.d] [patch] statd and lockd fail to start
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 06 16:50:09 UTC 2011
>Closed-Date:    Fri Feb 17 07:51:08 UTC 2012
>Last-Modified:  Fri Feb 17 07:51:08 UTC 2012
>Originator:     Jim Pirzyk
>Release:        FreeBSD 8.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD freebsd.home.pirzyk.org 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010
root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
        the lockd and statd rc.d scripts do not detect that nfsclient has been
        enabled, so they do not start.

        The sh function 'checkyesno' defined in /etc/rc.subr does not read the
        /etc/rc.conf.d/nfsclient nor /etc/rc.conf.d/nfsserver files.

>How-To-Repeat:

        Create the following files:
        /etc/rc.conf.d/nfsclient
                nfs_client_enable="YES"
        /etc/rc.conf.d/lockd
                rpc_lockd_enable="YES"
        /etc/rc.conf.d/statd
                rpc_statd_enable="YES"
>Fix:

--- /etc/rc.d/statd.orig        2011-02-06 11:21:04.000000000 -0500
+++ /etc/rc.d/statd     2011-02-05 13:33:15.000000000 -0500
@@ -40,4 +40,6 @@
 }
 
 load_rc_config $name
+load_rc_config nfsclient
+load_rc_config nfsserver
 run_rc_command $1
--- /etc/rc.d/lockd.orig        2011-02-06 11:20:57.000000000 -0500
+++ /etc/rc.d/lockd     2011-02-05 13:31:35.000000000 -0500
@@ -40,4 +40,6 @@
 }
  
 load_rc_config $name
+load_rc_config nfsclient
+load_rc_config nfsserver
 run_rc_command $1

- JimP

--- @(#) $Id: dot.signature,v 1.15 2007/12/27 15:06:13 pirzyk Exp $
--------------------------------------------------
    __o  jim@pirzyk.org
 _'\<,_
(*)/ (*) I'd rather be out biking.

--Apple-Mail-4-875064881
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iQEVAwUBTU7MtBMKjZgDurkjAQJ/2AgArxUJz4AgGAhwOvIASgLpkk3f2i/8EukK
zRcuaGyuRuMybUwuaTM6gFV4ROWKvttH/U3UIn1OcpznNa28DYosyUbVdSqRXE9J
5KoFpfVUvz6EOiP+5Za4yUkejkFN/lSeoV6Biq3MGrNwVYOG5GHi7CP8miYUnsLv
2Wul9eX1SFsYKuNISS74frWI60fQTjzAmvEJguV36byJliowjh6fj0+vC3kYqAEF
z08qlgLNezjcBRLRe76n2v39JL+WPu8d2aSxTsttS8+aEzabEAIxzJsxopWGHxL8
Q/WgqULqiZmUUkND25VpApNKzwOUrlll95hWjVdhYXUA+mHFzrUOjw==
=qjtr
-----END PGP SIGNATURE-----

--Apple-Mail-4-875064881--
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Feb 7 07:11:31 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=154554 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Fri Feb 17 07:50:21 UTC 2012 
State-Changed-Why:  

This was fixed by removing the (misguided) check 


Responsible-Changed-From-To: freebsd-rc->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Fri Feb 17 07:50:21 UTC 2012 
Responsible-Changed-Why:  

I removed it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=154554 
>Unformatted:
 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --Apple-Mail-4-875064881
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain; charset=us-ascii
 
