SOURCES: rlinetd.inet.sh - allow no PORT, use new "wait" option fo...
qboosh
qboosh at pld-linux.org
Mon Mar 20 10:48:51 CET 2006
Author: qboosh Date: Mon Mar 20 09:48:51 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- allow no PORT, use new "wait" option for tcp/wait services
---- Files affected:
SOURCES:
rlinetd.inet.sh (1.11 -> 1.12)
---- Diffs:
================================================================
Index: SOURCES/rlinetd.inet.sh
diff -u SOURCES/rlinetd.inet.sh:1.11 SOURCES/rlinetd.inet.sh:1.12
--- SOURCES/rlinetd.inet.sh:1.11 Sun Mar 12 16:13:11 2006
+++ SOURCES/rlinetd.inet.sh Mon Mar 20 10:48:45 2006
@@ -22,8 +22,6 @@
[ ${PROTOCOL:-not} = "not" ] && ERROR_CODE=12
if [ ${RPCNAME:-not} = "not" ]; then
[ ${PORT:-not} = "not" ] && ERROR_CODE=13
- else
- [ ${PORT:-not} = "not" ] && PORT=0
fi
[ ${USER:-not} = "not" ] && ERROR_CODE=14
[ ${SERVER:-not} = "not" ] && ERROR_CODE=15
@@ -61,7 +59,7 @@
echo "service \"$SERVICE_NAME\" {"
echo " protocol $PROTOCOL;"
[ "${FAMILY:-none}" = "none" ] || echo " family $FAMILY;"
- echo " port \"$PORT\";"
+ [ "${PORT:-none}" = "none" ] || echo " port \"$PORT\";"
echo " user \"$USER\";"
[ "${GROUP:-none}" = "none" ] || echo " group \"$GROUP\";"
if [ "$SERVER" = "tcpd" ] ; then
@@ -76,7 +74,7 @@
echo " $DAEMONARGS\";"
fi
if [ "$FLAGS" = "wait" ] ; then
- echo " instances 1;"
+ echo " wait yes;"
else
[ "${MAX_CONNECTIONS:-n}" = "n" ] || echo " instances $MAX_CONNECTIONS;"
fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rlinetd.inet.sh?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list