From 14121e191e4fcc6ab366d1135a421de0f1b3207c Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Wed, 6 Apr 2005 14:02:14 +0000 Subject: [PATCH] Add man page svn path=/trunk/mono/; revision=42605 --- man/Makefile.am | 2 +- man/mono-service.1 | 79 ++++++++++++++++++++++++++++++++++++++++++++++ man/mono.1 | 1 + 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 man/mono-service.1 diff --git a/man/Makefile.am b/man/Makefile.am index 8d3101b4532..6ebc1603658 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,6 +1,6 @@ man_MANS = mcs.1 mono.1 monostyle.1 mono-config.5 sqlsharp.1 oldmono.1 ilasm.1 \ cert2spc.1 cilc.1 genxs.1 wsdl.1 disco.1 soapsuds.1 makecert.1 \ chktrust.1 setreg.1 sn.1 secutil.1 signcode.1 certmgr.1 monop.1 xsd.1 gacutil.1 \ - macpack.1 mkbundle.1 dtd2xsd.1 permview.1 prj2make.1 + macpack.1 mkbundle.1 dtd2xsd.1 permview.1 prj2make.1 mono-service.1 EXTRA_DIST = $(man_MANS) 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 ` +.fi +.TP +Resuming service: +.nf + kill -USR2 `cat ` +.fi +.TP +Stopping the service: +.nf + kill `cat ` +.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 + diff --git a/man/mono.1 b/man/mono.1 index 0401a7b5c3b..c6f6e088857 100644 --- a/man/mono.1 +++ b/man/mono.1 @@ -1,6 +1,7 @@ .\" .\" mono manual page. .\" (C) 2003 Ximian, Inc. +.\" (C) 2004-2005 Novell, Inc. .\" Author: .\" Miguel de Icaza (miguel@gnu.org) .\" -- 2.25.1