Date: Tue, 7 Nov 2000 01:02:03 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Forrest Aldrich <forrie@forrie.com> Cc: freebsd-stable@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: /etc/defaults/rc.conf Message-ID: <20001107010203.A9348@hades.hell.gr> In-Reply-To: <5.0.0.25.2.20001106153332.00b2aad0@216.67.14.69>; from forrie@forrie.com on Mon, Nov 06, 2000 at 03:37:01PM -0500 References: <5.0.0.25.2.20001106153332.00b2aad0@216.67.14.69>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, Nov 06, 2000 at 03:37:01PM -0500, Forrest Aldrich wrote:
> It would be useful to have back the program specification variable for
> inetd. Currently we have:
>
> inetd_enable="YES" # Run the network daemon dispatcher (or NO).
> inetd_flags="-wW" # Optional flags to inetd
>
> and the /etc/rc.* files assume the use of the stock inetd. Where some
> people choose to use alternative inetd-like programs such as xinetd.
[...]
Nice idea! And the fix is simple. The included patch will correct it :-)
[ do we really need to cross-post this? ]
- giorgos
[-- Attachment #2 --]
diff -r -u etc.orig/defaults/rc.conf etc/defaults/rc.conf
--- etc.orig/defaults/rc.conf Tue Nov 7 00:59:39 2000
+++ etc/defaults/rc.conf Tue Nov 7 00:58:40 2000
@@ -89,6 +89,7 @@
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).
+inetd_program="inetd" # path to inetd, if you don't want stock inetd
inetd_flags="-wW" # Optional flags to inetd
#
# named. It may be possible to run named in a sandbox, man security for
diff -r -u etc.orig/rc etc/rc
--- etc.orig/rc Tue Nov 7 00:59:29 2000
+++ etc/rc Tue Nov 7 00:55:27 2000
@@ -395,7 +395,10 @@
[Nn][Oo])
;;
*)
- echo -n ' inetd'; inetd ${inetd_flags}
+ if [ -x ${inetd_program:-/usr/sbin/inetd} ]; then
+ echo -n ' inetd';
+ ${inetd_program:-/usr/sbin/inetd} ${inetd_flags}
+ fi
;;
esac
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001107010203.A9348>
