Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2005-04-06 18:02:14 +0400
committerMiguel de Icaza <miguel@gnome.org>2005-04-06 18:02:14 +0400
commit14121e191e4fcc6ab366d1135a421de0f1b3207c (patch)
tree739138ae0236537f1823135453d171d17d0016be /man/mono-service.1
parentc1f9befaedf056500ffbd50a163c6865353750e5 (diff)
Add man page
svn path=/trunk/mono/; revision=42605
Diffstat (limited to 'man/mono-service.1')
-rw-r--r--man/mono-service.179
1 files changed, 79 insertions, 0 deletions
diff --git a/man/mono-service.1 b/man/mono-service.1
new file mode 100644
index 00000000000..07abeab0dc0
--- /dev/null
+++ b/man/mono-service.1
@@ -0,0 +1,79 @@
+.\"
+.\" mono-service manual page.
+.\" (C) 2005 Novell, Inc.
+.\" Author:
+.\" Miguel de Icaza (miguel@gnu.org)
+.\"
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.TH Mono "Mono 1.0"
+.SH NAME
+mono-service \- Mono ServiceProcess host
+.SH SYNOPSIS
+.PP
+.B mono-service [options] program.exe
+.SH DESCRIPTION
+The \fImono-service\fP is a host to run services built with the
+ServiceProcess assembly.
+.PP
+Services can be paused by sending the SIGUSR1 signal to the process,
+and execution can be resumed by sending the SIGUSR2 signal. The
+service can be cleanly shutdown by sending the SIGTERM signal to the
+process.
+.PP
+The following options can be used to control the service:
+.TP
+.I "-d:DIRECTORY"
+Use this option to specify the working directory for the service. The
+default is the current directory.
+.TP
+.I "-l:LOCKFILE"
+Specifies the file to use for locking, the default is a filename
+constructed in /tmp based on the name of the program that hosts the
+service.
+.TP
+.I "-m:MESSAGE"
+Name to show in the syslog.
+.TP
+.I "-n:NAME"
+Use this to specify the service to be launched (if the program
+contains more than one service). The default is to run the first
+defined service.
+.SH CONTROL
+You can control the service by sending signals to the process, you can
+use the following commands:
+.TP
+Pausing service:
+.nf
+ kill -USR1 `cat <lock file>`
+.fi
+.TP
+Resuming service:
+.nf
+ kill -USR2 `cat <lock file>`
+.fi
+.TP
+Stopping the service:
+.nf
+ kill `cat <lock file>`
+.fi
+.SH EXAMPLES
+Start the MyService.exe assembly, with a lock in /root/service-lock:
+.nf
+
+ mono-service -l:/root/service-lock MyService.exe
+
+.fi
+.SH DEBUGGING
+Messages produced by the service are logged on syslog.
+.SH MAILING LISTS
+Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
+.SH WEB SITE
+Visit: http://www.mono-project.com for details
+.SH SEE ALSO
+.BR mono(1)
+.PP
+.BR N:System.ServiceProcess
+