Roxen.git/
server/
start
Branch:
Tag:
Non-build tags
All tags
No tags
2001-07-09
2001-07-09 21:06:43 by Martin Nilsson <mani@lysator.liu.se>
b80b4c3cad10f5bdc3536538f87cb1628c0c0f49 (
25
lines) (+
18
/-
7
)
[
Show
|
Annotate
]
Branch:
5.2
Added --keep-mysql to avoid the annoying 2+ seconds delay during shutdown.
Rev: server/start:1.172
1:
#!/bin/sh #
-
# $Id: start,v 1.
171
2001/07/
02
02
:
53
:
18
mast
Exp $
+
# $Id: start,v 1.
172
2001/07/
09
21
:
06
:
43
nilsson
Exp $
### If --silent-start is given as the first argument, ### nothing will be printed to stdout by the script.
224:
'--onve'|'--onec'|'--onev'|'--ocne') once=1 ;;
+
'--keep-mysql')
+
keep_mysql=1
+
;;
'--gdb') gdb=gdb once=1
346:
.B--onceB.: Run the server only once, in the foreground. This is very useful when debugging.
+
.B--keep-mysqlB.: Don't shut down MySQL process when exiting
+
the start script. Useful during development
+
or any other scenario where the start script
+
is frequently terminated.
+
.B--gdbB.: Run the server in gdb. Implies .B--onceB.. .B--programB.: Start a different program with the roxen
580:
kill $ROXEN_PID 2>/dev/null && wait $ROXEN_PID 2>/dev/null dp "Roxen WebServer shutdown." fi
+
if [ "x$keep_mysql" = "x" ] ; then
if [ -f $DIR/_mysql/mysql_pid ] ; then dp "Shutting down mysql" kill `cat $DIR/_mysql/mysql_pid` 2>/dev/null
589:
fi rm -f $DIR/_mysql/mysql_pid 2>/dev/null fi
+
fi
dp "Start script terminated." exit 0 }