Date: Mon, 3 Apr 2006 16:43:32 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Bill Moran <wmoran@collaborativefusion.com> Cc: freebsd-rc@freebsd.org Subject: Re: syslogd script bug?: syslogd_program= not honored Message-ID: <20060403234332.GB6719@odin.ac.hmc.edu> In-Reply-To: <20060403185744.61697002.wmoran@collaborativefusion.com> References: <20060403185744.61697002.wmoran@collaborativefusion.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--bCsyhTFzCvuiizWE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 03, 2006 at 06:57:44PM -0400, Bill Moran wrote: >=20 > It doesn't seem as if syslogd_program (in rc.conf) is honored. >=20 > To reproduce, install syslog-ng, then set the following in /etc/rc.conf: > syslogd_enable=3D"YES" > syslogd_program=3D"/usr/local/sbin/syslog-ng" >=20 > This does not result in syslog-ng starting - in fact, it seems as if > the FreeBSD syslogd is still started. >=20 > In my (unexpert) opinion, the problem is that /etc/rc.d/syslogd contains > the line: > command=3D"/usr/sbin/${name}" > which seems atypical compared to other rc.d scripts. >=20 > I'm not sure if the rc.d/syslogd script can reliably start other syslog- > ish programs. The syslogd_precmd() makes me wonder if this script would > be problematic starting anything but FreeBSD's syslogd. >=20 > There's definately an issue, since syslogd_program doesn't work as > advertised. My question is whether it's a documentation issue (the > references to syslogd_program should be removed) or a bug in the > rc.d script. It's a bug in the script. flz has patches that correct it by causing ${name}_program to unconditionally override command if both are set which fixes it in the infrastructure (along with other things). Here's the latest: http://people.freebsd.org/~flz/local/rc.d-merge-sshd.diff -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --bCsyhTFzCvuiizWE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEMbMjXY6L6fI4GtQRAps0AJwOh87j4qaxqWvRUaG52Jv4Gm1b2QCeIgJ6 11zLtJ2UWA4tE5ZhU1aChs8= =QR14 -----END PGP SIGNATURE----- --bCsyhTFzCvuiizWE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060403234332.GB6719>