Add script for mono-service
[mono.git] / scripts / mono-service.in
diff --git a/scripts/mono-service.in b/scripts/mono-service.in
new file mode 100644 (file)
index 0000000..bb5a818
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+args="$@"
+assembly=
+while test x$1 != x; do
+       case $1 in
+               -[ldnm]:*) ;;
+               *) assembly=$1;;
+       esac
+       shift
+done
+
+if test x$assembly = x; then
+       echo You must specify at least the assembly name
+       echo Usage is:
+       echo mono-service [-d:DIRECTORY] [-l:LOCKFILE] [-n:NAME] [-m:LOGNAME] service.exe
+       exit 1
+fi
+
+exec @bindir@/@mono_interp@ @mono_one_instdir@/@exe_file@ "$args"
\ No newline at end of file