Author: miguel
Date: 2007-01-01 15:14:20 -0500 (Mon, 01 Jan 2007)
New Revision: 70324
Modified:
trunk/mono/scripts/mono-service.in
Log:
2007-01-01 Miguel de Icaza <[EMAIL PROTECTED]>
* scripts/mono-service.in (debug): Add --debug, --no-daemonize and
make sure that this works with 2.0 (wrong binary was being
refereced).
Fixes: #80309
Modified: trunk/mono/scripts/mono-service.in
===================================================================
--- trunk/mono/scripts/mono-service.in 2007-01-01 17:56:18 UTC (rev 70323)
+++ trunk/mono/scripts/mono-service.in 2007-01-01 20:14:20 UTC (rev 70324)
@@ -1,10 +1,13 @@
#!/bin/sh
-args="$@"
+args=""
assembly=
+debug=false
while test x$1 != x; do
case $1 in
- -[ldnm]:*) ;;
- *) assembly=$1;;
+ -[ldnm]:*) args="$args$1 " ;;
+ --debug) debug=true ;;
+ --no-daemon) debug=true ;;
+ *) assembly=$1; args="$args$assembly ";;
esac
shift
done
@@ -18,6 +21,8 @@
echo ' -l:<lock file> Lock file (default is
/tmp/<service>.lock)'
echo ' -m:<syslog name> Name to show in syslog'
echo ' -n:<service name> Name of service to start (default is
first defined)'
+ echo ' --debug Do not send to background nor
redirect input/output'
+ echo ' --no-daemon Do not send to background nor
redirect input/output'
echo
echo Controlling the service:
echo
@@ -29,4 +34,8 @@
fi
export MONO_DISABLE_SHM=1
-exec @bindir@/@mono_interp@ $MONO_OPTIONS
@mono_instdir@/@framework_version@/@[EMAIL PROTECTED] $args </dev/null >&
/dev/null &
+if $debug; then
+ exec @bindir@/@mono_interp@ $MONO_OPTIONS
@mono_instdir@/@framework_version@/mono-service.exe $args
+else
+ exec @bindir@/@mono_interp@ $MONO_OPTIONS
@mono_instdir@/@framework_version@/mono-service.exe $args </dev/null >&
/dev/null &
+fi
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches