1Mono(mono-service)                                          Mono(mono-service)
2
3
4

NAME

6       mono-service, mono-service2 - Mono ServiceProcess host
7

SYNOPSIS

9       mono-service [options] program.exe
10

DESCRIPTION

12       The  mono-service  is a host to run services built with the ServicePro‐
13       cess assembly.
14
15       Use mono-service to run services that use the 1.0  assemblies  and  use
16       mono-service2 to run services that use the 2.0 assemblies.
17
18       Services  can  be  paused by sending the SIGUSR1 signal to the process,
19       and execution can be resumed by sending the SIGUSR2 signal.   The  ser‐
20       vice  can  be  cleanly  shutdown  by  sending the SIGTERM signal to the
21       process.
22
23       The following options can be used to control the service:
24
25       -d:DIRECTORY
26              Use this option to specify the working directory  for  the  ser‐
27              vice.  The default is the current directory.
28
29       -l:LOCKFILE
30              Specifies the file to use for locking, the default is a filename
31              constructed in /tmp based on the name of the program that  hosts
32              the service.
33
34       -m:MESSAGE
35              Name to show in the syslog.
36
37       -n:NAME
38              Use  this  to specify the service to be launched (if the program
39              contains more than one service).   The default  is  to  run  the
40              first defined service.
41
42       --debug
43              Use  this  option to prevent mono-service from redirecting stdin
44              and stdout and prevent the program to be sent to the background.
45              Equivalent to --no-daemon
46
47       --no-daemon
48              Use  this  option to prevent mono-service from redirecting stdin
49              and stdout and prevent the program to be sent to the background.
50              Equivalent to --debug.
51

CONTROL

53       You  can control the service by sending signals to the process, you can
54       use the following commands:
55
56       Pausing service:
57                   kill -USR1 `cat <lock file>`
58
59       Resuming service:
60                   kill -USR2 `cat <lock file>`
61
62       Stopping the service:
63                   kill `cat <lock file>`
64

EXAMPLES

66       Start the MyService.exe assembly, with a lock in /root/service-lock:
67
68            mono-service -l:/root/service-lock MyService.exe
69
70

DEBUGGING

72       Messages produced by the service are logged on syslog.
73

MAILING LISTS

75       Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
76

WEB SITE

78       Visit: http://www.mono-project.com for details
79

SEE ALSO

81       mono(1)
82
83       N:System.ServiceProcess
84
85
86
87
88                                                            Mono(mono-service)
Impressum