Date: Tue, 10 Jul 2001 14:50:26 -0500 (CDT) From: "Douglas K. Rand" <rand@meridian-enviro.com> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/28878: Patch to rc to use syslogd_program for path to syslogd Message-ID: <200107101950.f6AJoQV02441@cliff.meridian-enviro.com>
next in thread | raw e-mail | index | archive | help
>Number: 28878
>Category: misc
>Synopsis: Patch to rc to use syslogd_program for path to syslogd
>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: Tue Jul 10 13:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Douglas K. Rand
>Release: FreeBSD 4.3-STABLE i386
>Organization:
Meridian Environmental Technology, Inc.
>Environment:
System: FreeBSD cliff.meridian-enviro.com 4.3-STABLE FreeBSD 4.3-STABLE #3: Tue Jul 10 10:43:24 CDT 2001 rand@cliff.meridian-enviro.com:/usr/obj/usr/src/sys/CLIFF i386
>Description:
A number of system facilities, especially network ones, allow a different
program to be run by the rc scripts by using a NAME_program setting in the
/etc/rc.conf. This is not available for syslogd, and we use a different
syslogd than the stock FreeBSD one. Since it is important for syslogd to
start before other programs, using a /usr/local/etc/rc.d/syslogd.sh script
isn't really an option.
I propse a syslogd_program setting in rc.conf to select which syslogd
to be started.
>How-To-Repeat:
Try to have a different syslogd run on boot.
>Fix:
Here are patches to to /etc/rc and /etc/defaults/rc.conf to "solve"
my problem:
--- rc.orig Tue Jul 10 14:40:11 2001
+++ rc Tue Jul 10 14:41:56 2001
@@ -364,7 +364,7 @@
fi
rm -f /var/run/log
- echo -n ' syslogd'; syslogd ${syslogd_flags}
+ echo -n ' syslogd'; ${syslogd_program:-syslogd} ${syslogd_flags}
;;
esac
--- defaults/rc.conf.orig Tue Jul 10 14:48:52 2001
+++ defaults/rc.conf Tue Jul 10 14:41:09 2001
@@ -106,6 +106,7 @@
ppp_user="root" # Which user to run ppp as
### Network daemon (miscellaneous) & NFS options: ###
+syslogd_program="/usr/sbin/syslogd" # Path to syslogd server program.
syslogd_enable="YES" # Run syslog daemon (or NO).
syslogd_flags="-s" # Flags to syslogd (if enabled).
inetd_enable="YES" # Run the network daemon dispatcher (or NO).
>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?200107101950.f6AJoQV02441>
