2 .\" mono-service manual page.
3 .\" (C) 2005 Novell, Inc.
5 .\" Miguel de Icaza (miguel@gnu.org)
7 .de Sp \" Vertical space (when we can't use .PP)
11 .TH Mono "mono-service"
13 mono-service, mono-service2 \- Mono ServiceProcess host
16 .B mono-service [options] program.exe
18 The \fImono-service\fP is a host to run services built with the
19 ServiceProcess assembly.
21 Use \fImono-service\fP to run services that use the 1.0 assemblies and
22 use \fImono-service2\fP to run services that use the 2.0 assemblies.
24 Services can be paused by sending the SIGUSR1 signal to the process,
25 and execution can be resumed by sending the SIGUSR2 signal. The
26 service can be cleanly shutdown by sending the SIGTERM signal to the
29 The following options can be used to control the service:
32 Use this option to specify the working directory for the service. The
33 default is the current directory.
36 Specifies the file to use for locking, the default is a filename
37 constructed in /tmp based on the name of the program that hosts the
41 Name to show in the syslog.
44 Use this to specify the service to be launched (if the program
45 contains more than one service). The default is to run the first
49 Use this option to prevent mono-service from redirecting stdin and
50 stdout and prevent the program to be sent to the background.
51 Equivalent to --no-daemon
54 Use this option to prevent mono-service from redirecting stdin and
55 stdout and prevent the program to be sent to the background.
56 Equivalent to --debug.
58 You can control the service by sending signals to the process, you can
59 use the following commands:
63 kill -USR1 `cat <lock file>`
68 kill -USR2 `cat <lock file>`
73 kill `cat <lock file>`
76 Start the MyService.exe assembly, with a lock in /root/service-lock:
79 mono-service -l:/root/service-lock MyService.exe
83 Messages produced by the service are logged on syslog.
85 Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
87 Visit: http://www.mono-project.com for details
91 .BR N:System.ServiceProcess