* TextControl.cs: soft now means something different than what
[mono-project.git] / scripts / mono-service.in
blobf422d36251c4420f5a969b27dfc510a3a6c88a33
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
12 if test x$assembly = x; then
13 echo You must specify at least the assembly name
14 echo
15 echo "Usage is: $0 [options] service"
16 echo
17 echo ' -d:<directory> Working directory'
18 echo ' -l:<lock file> Lock file (default is /tmp/<service>.lock)'
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
31 export MONO_DISABLE_SHM=1
32 exec @bindir@/@mono_interp@ $MONO_OPTIONS @mono_instdir@/@framework_version@/@exe_name@.exe $args </dev/null >& /dev/null &