Add script for mono-service
[mono.git] / scripts / mono-service.in
1 #!/bin/sh
2 args="$@"
3 assembly=
4 while test x$1 != x; do
5         case $1 in
6                 -[ldnm]:*) ;;
7                 *) assembly=$1;;
8         esac
9         shift
10 done
11
12 if test x$assembly = x; then
13         echo You must specify at least the assembly name
14         echo Usage is:
15         echo mono-service [-d:DIRECTORY] [-l:LOCKFILE] [-n:NAME] [-m:LOGNAME] service.exe
16         exit 1
17 fi
18
19 exec @bindir@/@mono_interp@ @mono_one_instdir@/@exe_file@ "$args"