prepare the lets be a superserver release.
[packages/xinetd.git] / debian / xinetd.init
index b7fc550..602f052 100644 (file)
@@ -9,20 +9,24 @@ if test -f /etc/default/xinetd; then
        . /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)