Roxen.git/
server/
start
Branch:
Tag:
Non-build tags
All tags
No tags
2006-07-17
2006-07-17 15:30:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>
561af8cb19427cb9622950c539f64e04a0c9e9b0 (
23
lines) (+
22
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added --generations.
Rev: server/start:1.225
1:
#!/bin/sh #
-
# $Id: start,v 1.
224
2005
/
12
/
21
14
:
03
:
33
noring
Exp $
+
# $Id: start,v 1.
225
2006
/
07
/
17
15
:
30
:
39
grubba
Exp $
### If --silent-start is given as the first argument, ### nothing will be printed to stdout by the script.
275:
'--with-file-profile'|'--file-profile') DEFINES="-DPROFILE -DFILE_PROFILE $DEFINES" ;;
+
'--generations='*)
+
GENERATIONS=`echo $1 | sed -e 's/--generations=//'`
+
if test "$GENERATTIONS" -gt 1; then :; else
+
echo "Invalid number of log generations: $GENERATIONS" >&2
+
echo "Using default: 5" >&2
+
GENERATIONS=5
+
fi
+
;;
+
'--generations')
+
GENERATIONS="$2"
+
shift
+
if test "$GENERATTIONS" -gt 1; then :; else
+
echo "Invalid number of log generations: $GENERATIONS" >&2
+
echo "Using default: 5" >&2
+
GENERATIONS=5
+
fi
+
;;
'--quiet'|'-q') verbose=0 ;;
432:
.B--with-file-profileB.: Like .B--with-profileB., but save information for each and every file.
+
.B--generations=NUMBERB.: Specify the number of generations for the
+
log rotation. Default: 5.
+
.B--self-testB.: Runs a testsuite. .B--self-test-verboseB.: Runs a testsuite, report all tests. .B--self-test-quietB.: Runs a testsuite, only report errors.