1Mono(Mono 1.0)                                                  Mono(Mono 1.0)
2
3
4

NAME

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

CONTROL

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

EXAMPLES

63       Start the MyService.exe assembly, with a lock in /root/service-lock:
64
65            mono-service -l:/root/service-lock MyService.exe
66
67

DEBUGGING

69       Messages produced by the service are logged on syslog.
70

MAILING LISTS

72       Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
73

WEB SITE

75       Visit: http://www.mono-project.com for details
76

SEE ALSO

78       mono(1)
79
80       N:System.ServiceProcess
81
82
83
84
85                                                                Mono(Mono 1.0)
Impressum