Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2002 19:10:59 +0200 (CEST)
From:      Helge Oldach <send-pr@oldach.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   conf/37292: make program names in /etc/defaults/rc.conf consistent
Message-ID:  <200204201710.g3KHAxTb022804@sep.oldach.net>

next in thread | raw e-mail | index | archive | help

>Number:         37292
>Category:       conf
>Synopsis:       make program names in /etc/defaults/rc.conf consistent
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 20 10:20:00 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204201710.g3KHAxTb022804>