From gjbroom@kinsella.UVic.CA  Tue Jul  4 13:24:53 1995
Received: from kinsella.UVic.CA (kinsella.UVic.CA [142.104.88.119])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA04428
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 4 Jul 1995 13:24:52 -0700
Received: (from gjbroom@localhost) by kinsella.UVic.CA (8.6.11/8.6.9) id NAA01910; Tue, 4 Jul 1995 13:24:44 -0700
Message-Id: <199507042024.NAA01910@kinsella.UVic.CA>
Date: Tue, 4 Jul 1995 13:24:44 -0700
From: gjbroom@csr.uvic.ca
Reply-To: gjbroom@csr.uvic.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: poor sysconfig/rc interaction when starting amd
X-Send-Pr-Version: 3.2

>Number:         589
>Category:       conf
>Synopsis:       /etc/rc should eval amd ${amdflags}
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jkh
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul  4 13:30:01 1995
>Closed-Date:    Fri Feb 9 04:21:42 PST 1996
>Last-Modified:  Fri Feb  9 04:22:07 PST 1996
>Originator:     
>Release:        FreeBSD 2.0-BUILT-19950612 i386
>Organization:
>Environment:

	

>Description:

	When amd is started in /etc/rc, using $amdflags from sysconfig,
	it would be really *really* nice if the line read:
		echo -n 'amd'; eval amd ${amdflags}
			       ^^^^
	This way, you can single-quote amdflags in sysconfig, and use
	backquotes to get information from the NIS.  If the backquotes 
	are double-quoted, an NIS lookup occurs before the network is 
	started.  My $amdflags look like:
		amdflags='-a /tmp_mnt -l syslog `ypcat -k amd.master`'
	so amd works very much like Sun's automount (and I can automatically
	generate amd.master on my NIS master).
	

>How-To-Repeat:

	

>Fix:
	
	Change "amd ${amdflags}" to "eval amd ${amdflags}" in /etc/rc.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: pst 
Responsible-Changed-When: Wed Feb 7 17:40:18 PST 1996 
Responsible-Changed-Why:  
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Fri Feb 9 04:21:42 PST 1996 
State-Changed-Why:  
Fixed as suggested in synopsis. 
>Unformatted:


