From owner-freebsd-current Mon Nov 6 15:10:18 2000 Delivered-To: freebsd-current@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 767AD37B4D7; Mon, 6 Nov 2000 15:10:11 -0800 (PST) Received: from hades.hell.gr (patr530-b061.otenet.gr [195.167.121.189]) by athserv.otenet.gr (8.10.1/8.10.1) with ESMTP id eA6N9kT20419; Tue, 7 Nov 2000 01:09:47 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id eA6N23W09479; Tue, 7 Nov 2000 01:02:03 +0200 (EET) Date: Tue, 7 Nov 2000 01:02:03 +0200 From: Giorgos Keramidas To: Forrest Aldrich Cc: freebsd-stable@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: /etc/defaults/rc.conf Message-ID: <20001107010203.A9348@hades.hell.gr> References: <5.0.0.25.2.20001106153332.00b2aad0@216.67.14.69> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.2.4i 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 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="inetd.diff" 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 --3V7upXqbjpZ4EhLz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message