. /etc/default/xinetd
fi
-
test -x /usr/sbin/xinetd || exit 0
+case "$INETD_COMPAT" in
+ [Yy]*) XINETD_OPTS="$XINETD_OPTS -inetd_compat";;
+ *);;
+esac
+
checkportmap () {
- if grep "^[^ *#]" /etc/xinetd.conf | grep -q 'rpc/'; then
- if ! rpcinfo -u localhost portmapper >/dev/null 2>&1; then
- echo
- echo "WARNING: portmapper inactive - RPC services unavailable!"
- echo " Commenting out or removing the RPC services from"
- echo " the /etc/xinetd.conf file will remove this message."
- echo
+ if grep "^[^ *#]" /etc/xinetd.conf | grep -q 'rpc/'; then
+ if ! rpcinfo -u localhost portmapper >/dev/null 2>&1; then
+ echo
+ echo "WARNING: portmapper inactive - RPC services unavailable!"
+ echo " Commenting out or removing the RPC services from"
+ echo " the /etc/xinetd.conf file will remove this message."
+ echo
+ fi
fi
- fi
-}
+}
case "$1" in
start)