X-Git-Url: http://git.madism.org/?p=packages%2Fxinetd.git;a=blobdiff_plain;f=debian%2Fxinetd.init;h=602f052144778ba050717e97bca313d13a211316;hp=b7fc550c25deafe1b7f28a7a89d825c8e41cc651;hb=a73ddd6fe297cf42469148a46953ad3486309a81;hpb=cad1993e2d29c5c413d4979e8ef27a767480cdb6 diff --git a/debian/xinetd.init b/debian/xinetd.init index b7fc550..602f052 100644 --- a/debian/xinetd.init +++ b/debian/xinetd.init @@ -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)