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
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