5 while test x
$1 != x
; do
7 -[ldnm
]:*) args
="$args$1 " ;;
9 --no-daemon) debug
=true
;;
10 *) assembly
=$1; args
="$args$assembly ";;
15 if test x
$assembly = x
; then
16 echo You must specify
at least the assembly name
18 echo "Usage is: $0 [options] service"
20 echo ' -d:<directory> Working directory'
21 echo ' -l:<lock file> Lock file (default is /tmp/<service>.lock)'
22 echo ' -m:<syslog name> Name to show in syslog'
23 echo ' -n:<service name> Name of service to start (default is first defined)'
24 echo ' --debug Do not send to background nor redirect input/output'
25 echo ' --no-daemon Do not send to background nor redirect input/output'
27 echo Controlling the service
:
29 echo ' kill -USR1 `cat <lock file>` Pausing service'
30 echo ' kill -USR2 `cat <lock file>` Continuing service'
31 echo ' kill `cat <lock file>` Ending service'
37 exec @bindir@
/@mono_interp@
$MONO_OPTIONS @mono_instdir@
/@framework_version@
/mono-service.exe
$args
39 exec @bindir@
/@mono_interp@
$MONO_OPTIONS @mono_instdir@
/@framework_version@
/mono-service.exe
$args </dev
/null
>/dev
/null
2>&1 &