SOURCES: rlinetd.inet.sh - rlinetd has serious problems with open ...

baggins baggins at pld-linux.org
Tue Oct 16 17:08:20 CEST 2007


Author: baggins                      Date: Tue Oct 16 15:08:20 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- rlinetd has serious problems with open files limit

---- Files affected:
SOURCES:
   rlinetd.inet.sh (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SOURCES/rlinetd.inet.sh
diff -u SOURCES/rlinetd.inet.sh:1.12 SOURCES/rlinetd.inet.sh:1.13
--- SOURCES/rlinetd.inet.sh:1.12	Mon Mar 20 10:48:45 2006
+++ SOURCES/rlinetd.inet.sh	Tue Oct 16 17:08:15 2007
@@ -12,6 +12,11 @@
 # addytional inet server daemon argumments
 INETDAEMON_ARGS=
 
+__ulimit_n=$(ulimit -n)
+if [ "$__ulimit_n" -gt 1024 -o "$__ulimit_n" = "unlimited" ]; then
+	DEFAULT_SERVICE_LIMITS="-n 1024"
+fi
+
 PREAMBLE="# This file is autogenerated from /etc/sysconfig/rc-inetd!"
 
 parse_one_service()
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rlinetd.inet.sh?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list