#!/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 echo "Usage is: $0 [options] service" echo echo ' -d: Working directory' echo ' -l: Lock file (default is /tmp/.lock)' echo ' -m: Name to show in syslog' echo ' -n: Name of service to start (default is first defined)' echo echo Controlling the service: echo echo ' kill -USR1 `cat ` Pausing service' echo ' kill -USR2 `cat ` Continuing service' echo ' kill `cat ` Ending service' echo exit 1 fi export MONO_DISABLE_SHM=1 exec @bindir@/@mono_interp@ $MONO_OPTIONS @mono_instdir@/@framework_version@/@exe_name@.exe $args & /dev/null &