From nobody@FreeBSD.ORG Tue Sep  7 01:01:11 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 98D4515B18; Tue,  7 Sep 1999 01:00:29 -0700 (PDT)
Message-Id: <19990907080029.98D4515B18@hub.freebsd.org>
Date: Tue,  7 Sep 1999 01:00:29 -0700 (PDT)
From: goran.lowkrantz@infologigruppen.se
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Some deamons not replacable at boot time via /etc/rc.conf
X-Send-Pr-Version: www-1.0

>Number:         13609
>Category:       conf
>Synopsis:       Some deamons not replacable at boot time via /etc/rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep  7 01:10:00 PDT 1999
>Closed-Date:    Mon Jul 23 03:02:43 PDT 2001
>Last-Modified:  Mon Jul 23 03:02:53 PDT 2001
>Originator:     Goran Lowkrantz
>Release:        3.3-RC
>Organization:
Infologigruppen Alfa AB
>Environment:
FreeBSD tandgrisner.ign.se 3.3-RC FreeBSD 3.3-RC #5: Sun Sep  5 13:11:28 CEST 1999     root@:/usr/src/sys/compile/TANDGRISNER  i386
>Description:
Some of the commonly replaces deamons don't have variables for the program path. Most of the deamons started in rc.network heve this but most other deamons stared from other scrips don't.

In the attched patch sendmail, syslogd and inetd are added to the replacable deamons.
>How-To-Repeat:

>Fix:
*** rc.orig	Mon Sep  6 00:43:12 1999
--- rc	Mon Sep  6 00:44:17 1999
***************
*** 226,232 ****
  	fi
  
  	rm -f /var/run/log
! 	echo -n ' syslogd';		syslogd ${syslogd_flags}
  fi
  echo '.'
  
--- 226,232 ----
  	fi
  
  	rm -f /var/run/log
! 	echo -n ' syslogd';		${syslogd_program} ${syslogd_flags}
  fi
  echo '.'
  
***************
*** 315,321 ****
  #
  echo -n starting standard daemons:
  if [ "X${inetd_enable}" != X"NO" ]; then
! 	echo -n ' inetd';	inetd ${inetd_flags}
  fi
  
  if [ "X${cron_enable}" != X"NO" ]; then
--- 315,321 ----
  #
  echo -n starting standard daemons:
  if [ "X${inetd_enable}" != X"NO" ]; then
! 	echo -n ' inetd';	${inetd_program} ${inetd_flags}
  fi
  
  if [ "X${cron_enable}" != X"NO" ]; then
***************
*** 327,333 ****
  fi
  
  if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then
! 	echo -n ' sendmail';	/usr/sbin/sendmail ${sendmail_flags}
  fi
  
  if [ "X${usbd_enable}" = X"YES" ]; then
--- 327,333 ----
  fi
  
  if [ "X${sendmail_enable}" = X"YES" -a -r /etc/sendmail.cf ]; then
! 	echo -n ' sendmail';	${sendmail_program} ${sendmail_flags}
  fi
  
  if [ "X${usbd_enable}" = X"YES" ]; then

*** defaults/rc.conf.orig	Mon Sep  6 00:40:54 1999
--- defaults/rc.conf	Mon Sep  6 00:42:59 1999
***************
*** 66,73 ****
--- 66,75 ----
  
  ### Network daemon (miscellaneous) & NFS options: ###
  syslogd_enable="YES"		# Run syslog daemon (or NO).
+ syslogd_program="syslogd"	# path to syslogd, if you want a different one.
  syslogd_flags=""		# Flags to syslogd (if enabled).
  inetd_enable="YES"		# Run the network daemon dispatcher (or NO).
+ inetd_program="inetd"		# path to inetd, if you want a different one.
  inetd_flags="-wW"		# Optional flags to inetd.
  #
  # named.  It may be possible to run named in a sandbox, man security for
***************
*** 200,205 ****
--- 202,208 ----
  usbd_enable="NO"	# Run the usbd daemon.
  usbd_flags=""		# Flags to usbd (if enabled).
  sendmail_enable="YES"	# Run the sendmail daemon (or NO).
+ sendmail_program="/usr/sbin/sendmail"	# path to sendmail, if you want a different one.
  sendmail_flags="-bd -q30m" # Flags to sendmail (if enabled)
  dumpdev="NO"		# Device name to crashdump to (if enabled).
  enable_quotas="NO"      # turn on quotas on startup (or NO).


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dd 
Responsible-Changed-By: dd 
Responsible-Changed-When: Sat Jun 16 18:35:26 PDT 2001 
Responsible-Changed-Why:  
This sounds like a good idea.  I'll forward-port the patch to -current and 
apply it. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13609 
State-Changed-From-To: open->analyzed 
State-Changed-By: dd 
State-Changed-When: Wed Jun 27 20:32:07 PDT 2001 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13609 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dd 
State-Changed-When: Mon Jul 23 03:02:43 PDT 2001 
State-Changed-Why:  
MFC'd, thanks 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13609 
>Unformatted:
