From fmysh@quad.dyndns.org  Tue Jun 28 17:04:59 2005
Return-Path: <fmysh@quad.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 03AC916A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Jun 2005 17:04:59 +0000 (GMT)
	(envelope-from fmysh@quad.dyndns.org)
Received: from prime.quad.dyndns.org (12.57.138.210.xn.2iij.net [210.138.57.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ABED643D58
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Jun 2005 17:04:58 +0000 (GMT)
	(envelope-from fmysh@quad.dyndns.org)
Received: from localhost (localhost [127.0.0.1])
	by prime.quad.dyndns.org (Postfix) with ESMTP id A960DF1BAF;
	Wed, 29 Jun 2005 02:04:56 +0900 (JST)
Received: from prime.quad.dyndns.org ([127.0.0.1])
 by localhost (prime.quad.dyndns.org [127.0.0.1]) (amavisd-new, port 10024)
 with LMTP id 46319-10; Wed, 29 Jun 2005 02:04:48 +0900 (JST)
Received: by prime.quad.dyndns.org (Postfix, from userid 1001)
	id 7E0A1F1B81; Wed, 29 Jun 2005 02:04:48 +0900 (JST)
Message-Id: <20050628170448.7E0A1F1B81@prime.quad.dyndns.org>
Date: Wed, 29 Jun 2005 02:04:48 +0900 (JST)
From: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
Reply-To: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
Subject: add amd_program line to defaults/rc.conf
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         82738
>Category:       conf
>Synopsis:       [patch] add amd_program line to defaults/rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-rc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 28 17:10:14 GMT 2005
>Closed-Date:    Tue Jun 06 10:00:05 GMT 2006
>Last-Modified:  Tue Jun 06 10:00:05 GMT 2006
>Originator:     TAOKA Fumiyoshi
>Release:        FreeBSD 6-CURRENT and 5-STABLE
>Organization:
>Environment:
>Description:
	AMD, Auto Mounter Daemon, is currently a part of FreeBSD as
	in the base system and also contained in the ports collection.
	So add amd_program line to defaults/rc.conf file as well as
	other programs, for example, named, ntpd and sshd.
	
>How-To-Repeat:
>Fix:

Index: rc.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.252
diff -u -r1.252 rc.conf
--- rc.conf	26 Jun 2005 16:30:20 -0000	1.252
+++ rc.conf	28 Jun 2005 16:30:59 -0000
@@ -203,6 +203,7 @@
 
 ### Network daemon (NFS): All need rpcbind_enable="YES" ###
 amd_enable="NO"			# Run amd service with $amd_flags (or NO).
+amd_program="/usr/sbin/amd"	# path to amd, if you want a different one.
 amd_flags="-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map"
 amd_map_program="NO"		# Can be set to "ypcat -k amd.master"
 nfs_client_enable="NO"		# This host is an NFS client (or NO).
>Release-Note:
>Audit-Trail:

From: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
To: bug-followup@FreeBSD.org
Cc: fmysh@iijmio-mail.jp
Subject: Re: conf/82738: add amd_program line to defaults/rc.conf
Date: Fri, 1 Jul 2005 03:09:57 +0900

 If you install ports/sysutils/am-utils and set
 amd_program="/usr/local/sbin/amd" in /etc/rc.conf,
 amd won't start during the system boot time.
 This is because amd is dynamically linked to libraries
 in /usr/local/lib which is not merged to the search path
 yet at the time amd starts up.
 
 Dependency of /etc/rc.d/amd on /etc/rc.d/ldconfig may
 resolve this. But is this a correct way?
 
 Index: amd
 ===================================================================
 RCS file: /home/ncvs/src/etc/rc.d/amd,v
 retrieving revision 1.15
 diff -u -r1.15 amd
 --- amd 16 Jan 2005 03:12:03 -0000      1.15
 +++ amd 30 Jun 2005 17:58:06 -0000
 @@ -5,7 +5,7 @@
  #
  
  # PROVIDE: amd
 -# REQUIRE: rpcbind ypbind nfsclient cleanvar
 +# REQUIRE: rpcbind ypbind nfsclient cleanvar ldconfig
  # BEFORE: DAEMON
  # KEYWORD: nojail
 
 -- 
 TAOKA Fumiyoshi
Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Wed Feb 22 02:23:30 UTC 2006 
Responsible-Changed-Why:  

Bring to the attention of the list 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82738 
State-Changed-From-To: open->closed 
State-Changed-By: flz 
State-Changed-When: Tue Apr 11 09:24:02 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82738 
State-Changed-From-To: closed->patched 
State-Changed-By: flz 
State-Changed-When: Tue Apr 11 09:28:30 UTC 2006 
State-Changed-Why:  
Should have set this to patched instead. Committed to HEAD, MFC planned 
after 3 days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82738 
State-Changed-From-To: patched->closed 
State-Changed-By: flz 
State-Changed-When: Tue Jun 6 10:00:02 UTC 2006 
State-Changed-Why:  
MFC to RELENG_6 done. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82738 
>Unformatted:
