* support-test-*.cs: Rename from test-*-p2.cs.
[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 
15         echo 'Usage is: mono-service [options] service'
16         echo 
17         echo '    -d:<directory>         Working directory'
18         echo '    -l:<lock file>         Lock file (default is /tmp/<service>.log)'
19         echo '    -m:<syslog name>       Name to show in syslog'
20         echo '    -n:<service name>      Name of service to start (default is first defined)'
21         echo 
22         echo Controlling the service:
23         echo 
24         echo '    kill -USR1 `cat <lock file>`    Pausing service'
25         echo '    kill -USR2 `cat <lock file>`    Continuing service'
26         echo '    kill `cat <lock file>`          Ending service'
27         echo 
28         exit 1
29 fi
30
31 export MONO_DISABLE_SHM=1
32 exec @bindir@/@mono_interp@ @mono_instdir@/@framework_version@/@exe_name@.exe $args </dev/null >& /dev/null &