From 60549b67be6fa8c323fa868f73b2087d384d40d7 Mon Sep 17 00:00:00 2001 From: Cristiano Giuffrida Date: Tue, 13 Jul 2010 11:45:41 +0000 Subject: [PATCH] Man pages for new system configuration. --- man/man5/Makefile | 2 +- man/man5/system.conf.5 | 176 +++++++++++++++++++++++++++++++++ man/man8/service.8 | 218 ++++++++++++++++++++++++++++++++++++++--- 3 files changed, 380 insertions(+), 16 deletions(-) create mode 100644 man/man5/system.conf.5 diff --git a/man/man5/Makefile b/man/man5/Makefile index 64bd09e47..ff54a635b 100644 --- a/man/man5/Makefile +++ b/man/man5/Makefile @@ -1,7 +1,7 @@ MAN= configfile.5 crontab.5 dhcp.conf.5 dir.5 ethers.5 \ fstab.5 hosts.5 httpd.conf.5 http_status.5 keymap.5 \ passwd.5 resolv.conf.5 resolver.5 rhosts.5 statvfs.5 serv.access.5 \ - syslog.conf.5 termcap.5 ttytab.5 TZ.5 tzfile.5 utmp.5 \ + system.conf.5 syslog.conf.5 termcap.5 ttytab.5 TZ.5 tzfile.5 utmp.5 \ whatis.5 .include diff --git a/man/man5/system.conf.5 b/man/man5/system.conf.5 new file mode 100644 index 000000000..797da4dca --- /dev/null +++ b/man/man5/system.conf.5 @@ -0,0 +1,176 @@ +.TH SYSTEM.CONF 5 +.SH NAME +system.conf \- operating system service configuration +.SH SYNOPSIS +.B /etc/system.conf +.SH DESCRIPTION +.de SP +.if t .sp 0.4 +.if n .sp +.. +The file +.B /etc/system.conf +is the global system configuration file that contains the +configuration for all the primary system services. This is the file +that the \fBservice\fR utility uses by default. Custom configuration +files with the same format can be specified on a per-service basis. See +.BR service (8) +for more details. + +This page is a summary of all the elements that can be found in this +configuration file. +.PP +The syntax used is that of the common configuration file described in +.BR configfile (5). +.PP +The \fBservice\fR utility scans the configuration file from beginning to end +to gather information about a specific system service when starting or +updating the properties of a service. +The file contains a collection of service entries of the form: + +.nf +\fBservice\fR \fI\fR +\fB{\fR + \fI[option 1]\fR + \fI[option 2]\fR + ... + \fI[option N]\fR +\fB};\fR +.fi +.PP +where \fI\fR is the name of the program used to start the +given system service. In each service entry, the following options can +be used: +.PP +\fBuid\fR \fI\fR\fB;\fR +.PP +.RS +specifies the user id or the user name to use to run the system service. +Many system services run with root privileges (uid \fB0\fR). +The default user is service (uid \fB12\fR). +.RE +.PP +\fBipc\fR \fI\fR\fB;\fR +.PP +.RS +specifies the list of ipc targets (processes and kernel) the system service can +talk to. \fIALL\fR allows all the possible targets, \fIALL_SYS\fR is similar but +excludes user processes. When an explicit list is given, each target +must be identified by its label (assigned to the corresponding system service). +Exceptions are user processes (use pseudo-label \fIUSER\fR) and +the kernel for kernel calls (use pseudo-label \fISYSTEM\fR). The default is +\fIALL_SYS\fR. +.RE +.PP +\fBsystem\fR \fI\fR\fB;\fR +.PP +.RS +specifies the list of kernel calls the system service is allowed to call. +\fIALL\fR allows all the kernel calls, \fIBASIC\fR only allows basic kernel +calls (see macro \fBSYS_BASIC_CALLS\fR in \fB\fR), +\fINONE\fR allows no kernel call. This option only makes sense if the +option \fBipc\fR includes the kernel as a valid target. +The default is \fIBASIC\fR. +.RE +.PP +\fBvm\fR \fI\fR\fB;\fR +.PP +.RS +specifies the list of VM calls the system service is allowed to call. +\fIALL\fR allows all the VM calls, \fIBASIC\fR only allows basic VM +calls (see macro \fBVM_BASIC_CALLS\fR in \fB\fR), +\fINONE\fR allows no VM call. This option only makes sense if the +option \fBipc\fR includes VM as a valid target. +The default is \fIBASIC\fR. +.RE +.PP +\fBio\fR \fI\fR\fB;\fR +.PP +.RS +specifies the list of I/O ranges the system service is allowed to use. +\fIALL\fR allows all the possible I/O ranges, \fINONE\fR allows no I/O range +at all. When an explicit list is given, each range is identified by a base +address and an optional length. When no length is given, length \fB1\fR is +assumed. The default is \fINONE\fR. +.RE +.PP +\fBirq\fR \fI\fR\fB;\fR +.PP +.RS +specifies the list of IRQs the system service is allowed to use. +\fIALL\fR allows all the possible IRQs, \fINONE\fR allows no IRQ +at all. An explicit list of IRQ numbers may be given. +The default is \fINONE\fR. +.RE +.PP +\fBsigmgr\fR \fI\fR\fB;\fR +.PP +.RS +specifies the signal manager the system service is assigned to. The signal +manager intercepts all the termination and non-termination signals +(including signal generated by runtime exceptions, e.g. SIGSEGV) on behalf +of the service and reacts accordingly. \fISELF\fR allows the service to +become its own signal manager. This option should be used with care, +since a lethal signal for the service will immediately trigger a +kernel panic. A separate system service that acts as the designated signal +manager must be specified using its label. The default is specified in +\fB\fR (see macro \fBDSRV_SM\fR). +.RE +.PP +\fBscheduler\fR \fI\fR\fB;\fR +.PP +.RS +specifies the scheduler the system service is assigned to. The scheduler +implements the scheduling policy for the system service. \fIKERNEL\fR allows +the service to be scheduled directly by the kernel. A separate system +service that acts as the designated scheduler must be specified +using its label. The default is specified in +\fB\fR (see macro \fBDSRV_SCH\fR). +.RE +.PP +\fBpriority\fR \fI\fR\fB;\fR +.PP +.RS +specifies the priority queue the scheduler must assign the service to. +The default is specified in \fB\fR (see macro \fBDSRV_Q\fR). +.RE +.PP +\fBquantum\fR \fI\fR\fB;\fR +.PP +.RS +specifies the quantum size (ms) the scheduler must consider the service for. +The default is specified in \fB\fR (see macro \fBDSRV_QT\fR). +.RE +.PP +\fBpci device\fR \fI\fR\fB;\fR +.PP +.RS +specifies the PCI device IDs the system service is allowed to use +(only used for device drivers). +The default is to allow no PCI device IDs. +.RE +.PP +\fBpci class\fR \fI\fR\fB;\fR +.PP +.RS +specifies the PCI classes the system service is allowed to use +(only used for device drivers). +The default is to allow no PCI classes. +.RE +.PP +\fBcontrol\fR \fI\fR\fB;\fR +.PP +.RS +specifies the list of system services (identified by their labels) that are +allowed to control the system service. A controller service can ask RS +to perform privileged actions like immediately restarting the service. +The default is to allow no controller services. +.RE +.PP +.SH "SEE ALSO" +.BR configfile (5), +.BR service (8), +.BR boot (8). +.SH AUTHOR +Cristiano Giuffrida + diff --git a/man/man8/service.8 b/man/man8/service.8 index ba505ca7a..7d991ac67 100644 --- a/man/man8/service.8 +++ b/man/man8/service.8 @@ -1,14 +1,22 @@ .TH SERVICE 8 .SH NAME -service \- Start or stop an operating system server or device driver. +service \- Manage an operating system service. .SH SYNOPSIS .PP -\fBservice up\fR \fI\fR [\fB-args\fR \fIargs\fR] -[\fB-dev\fR \fIspecial\fR] [\fB-period\fR \fIticks\fR] +\fBservice [-c -r -n -p] (up|run|edit|update)\fR \fI\fR +[\fB-args\fR \fI\fR] [\fB-dev\fR \fI\fR] +[\fB-devstyle\fR \fI