From hmo@sep.oldach.net  Sat Apr 20 10:11:07 2002
Return-Path: <hmo@sep.oldach.net>
Received: from sep.oldach.net (sep.oldach.net [194.180.25.6])
	by hub.freebsd.org (Postfix) with ESMTP id 6F93037B420
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 20 Apr 2002 10:11:05 -0700 (PDT)
Received: from sep.oldach.net (localhost [127.0.0.1])
	by sep.oldach.net (8.12.3/8.12.3/hmo18apr02) with ESMTP id g3KHB2WN022805;
	Sat, 20 Apr 2002 19:11:02 +0200 (CEST)
	(envelope-from hmo@sep.oldach.net)
Received: (from hmo@localhost)
	by sep.oldach.net (8.12.3/8.12.3/Submit) id g3KHAxTb022804;
	Sat, 20 Apr 2002 19:10:59 +0200 (CEST)
	(envelope-from hmo)
Message-Id: <200204201710.g3KHAxTb022804@sep.oldach.net>
Date: Sat, 20 Apr 2002 19:10:59 +0200 (CEST)
From: Helge Oldach <send-pr@oldach.net>
Reply-To: Helge Oldach <send-pr@oldach.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: make program names in /etc/defaults/rc.conf consistent
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37292
>Category:       conf
>Synopsis:       make program names in /etc/defaults/rc.conf consistent
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cjc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 20 10:20:00 PDT 2002
>Closed-Date:    Wed Apr 24 22:15:36 PDT 2002
>Last-Modified:  Wed Apr 24 22:15:36 PDT 2002
>Originator:     Helge Oldach
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD sep.oldach.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Thu Apr 18 17:44:21 CEST 2002 toor@sep.oldach.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:

/etc/defaults/rc.conf has most program names with their full path. There
are some few exceptions:

named_program="named"		# path to named, if you want a different one.
ntpdate_program="ntpdate"	# path to ntpdate, if you want a different one.
xntpd_program="ntpd"		# path to ntpd, if you want a different one.
router="routed"			# Name of routing daemon to use if enabled.

For reasons of consistency, and to avoid that fiddling with PATH would
have unwanted side effects these should be change to include the full
path.

>How-To-Repeat:
	
>Fix:

--- src/etc/defaults/rc.conf	Mon Apr 15 16:04:21 2002
+++ src/etc/defaults/rc.conf.new	Sat Apr 20 19:07:45 2002
@@ -122,7 +122,7 @@
 # details.
 #
 named_enable="NO"		# Run named, the DNS server (or NO).
-named_program="named"		# path to named, if you want a different one.
+named_program="/usr/sbin/named"	# path to named, if you want a different one.
 #named_flags="-u bind -g bind"	# Flags for named
 
 #
@@ -177,10 +177,10 @@
 timed_enable="NO"		# Run the time daemon (or NO).
 timed_flags=""			# Flags to timed (if enabled).
 ntpdate_enable="NO"		# Run ntpdate to sync time on boot (or NO).
-ntpdate_program="ntpdate"	# path to ntpdate, if you want a different one.
+ntpdate_program="/usr/sbin/ntpdate"	# path to ntpdate, if you want a different one.
 ntpdate_flags="-b"		# Flags to ntpdate (if enabled).
 xntpd_enable="NO"		# Run ntpd Network Time Protocol (or NO).
-xntpd_program="ntpd"		# path to ntpd, if you want a different one.
+xntpd_program="/usr/sbin/ntpd"	# path to ntpd, if you want a different one.
 xntpd_flags="-p /var/run/ntpd.pid"	# Flags to ntpd (if enabled).
 
 # Network Information Services (NIS) options: All need portmap_enable="YES" ###
@@ -200,7 +200,7 @@
 static_routes=""		# Set to static route list (or leave empty).
 gateway_enable="NO"		# Set to YES if this host will be a gateway.
 router_enable="NO"		# Set to YES to enable a routing daemon.
-router="routed"			# Name of routing daemon to use if enabled.
+router="/sbin/routed"		# Name of routing daemon to use if enabled.
 router_flags="-q"		# Flags for routing daemon.
 mrouted_enable="NO"		# Do multicast routing (see /etc/mrouted.conf).
 mrouted_flags=""		# Flags for multicast routing daemon.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: cjc 
State-Changed-When: Sun Apr 21 01:32:50 PDT 2002 
State-Changed-Why:  
Patched in -CURRENT. 


Responsible-Changed-From-To: freebsd-bugs->cjc 
Responsible-Changed-By: cjc 
Responsible-Changed-When: Sun Apr 21 01:32:50 PDT 2002 
Responsible-Changed-Why:  
I'll handle the MFC to -STABLE in a few days. Thanks for the PR and 
patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37292 
State-Changed-From-To: patched->closed 
State-Changed-By: cjc 
State-Changed-When: Wed Apr 24 22:14:56 PDT 2002 
State-Changed-Why:  
MFCed to -STABLE. 

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