Roxen.git/
server/
start
Branch:
Tag:
Non-build tags
All tags
No tags
2000-11-20
2000-11-20 08:34:41 by Per Hedbor <ph@opera.com>
85cb2ed91e1197f07c7a928d40adaeb9db731d05 (
26
lines) (+
15
/-
11
)
[
Show
|
Annotate
]
Branch:
5.2
even better. :-)
Rev: server/start:1.137
1:
#!/bin/sh #
-
# $Id: start,v 1.
136
2000/11/20 08:
12
:
16
per Exp $
+
# $Id: start,v 1.
137
2000/11/20 08:
34
:
41
per Exp $
### If --silent-start is given as the first argument, ### nothing will be printed to stdout by the script.
635:
start_roxen() { check_owner
-
nfds=
2147483647
+
if ulimit -n unlimited 2>/dev/null ; then
+
:
+
else
+
nfds=
1073741824
while [ $nfds -gt "`ulimit -n`" ] ; do nfds=`expr $nfds / 2`
-
if
ulimit -n $nfds 2>/dev/null
;
then
+
ulimit -n $nfds 2>/dev/null
+
done
+
fi
dp "Maximum number of open FDs: `ulimit -n`"
-
if [ "`ulimit -n`" -lt 1024 ] ; then
+
if [ "`ulimit -n`" -lt 1024 ]
2>/dev/null
; then
dp "Warning: This is dangerously low" fi
-
fi
-
done
+
if [ x$remove_dumped = x1 ] ; then remove_old_dot_o_files "user request"