History

20081019-2039

Charles.Forsyth committed 18 years ago

Commit aaafc851 parent a7a5e6f3 files · +4 −115Browse files

Unified · Split

3 files
  1. CHANGES +2 −0
  2. man/2/sys-pctl +2 −3
  3. man/8/srv +0 −112
CHANGES+2−0
@@ -1,6 +1,8 @@
120081019120081019
2 /appl/cmd/man2html.b implement "\ " => " "2 /appl/cmd/man2html.b implement "\ " => " "
3 /man/3/prog change way a literal " was formatted3 /man/3/prog change way a literal " was formatted
4 /man/8/srv deleted (obsolete)
5 removed reference to srv(8) from sys-pctl(2)
420080909620080909
5 /appl/cmd/puttar.b add extra empty block at end of archive as required by format7 /appl/cmd/puttar.b add extra empty block at end of archive as required by format
620080907820080907
man/2/sys-pctl+2−3
@@ -126,9 +126,8 @@ The window manager · 125 unmodified lines
126uses126uses
127.B NEWPGRP|FORKFD127.B NEWPGRP|FORKFD
128when starting a window manager application.128when starting a window manager application.
129.IR Srv (8)129A network server might use
130uses130.B NEWPGRP|FORKNS|FORKFD|FORKENV
131.B NEWGRP|FORKNS|FORKFD
132to insulate itself completely from services it starts.131to insulate itself completely from services it starts.
133.PP132.PP
134The return value of133The return value of
man/8/srv+0−112
@@ -1,112 +0,0 @@
1.TH SRV 8 obsolete
2.SH NAME
3srv \- start services
4.SH SYNOPSIS
5.B lib/srv
6[
7.BI -n " nsfile"
8]
9[
10.B -v
11]
12[
13.B -s
14]
15.SH DESCRIPTION
16.I Srv
17starts listeners for local network services.
18It is now considered obsolete: see
19.IR svc (8),
20which replaces it using
21.IR sh (1)
22and
23.IR listen (1).
24.PP
25If the file
26.B /services/namespace
27exists,
28.I srv
29builds a new name space using
30.IR newns (2).
31The
32.B -n
33option may be used to supply a different file.
34.I Srv
35then starts a listener for each service configured in
36.BR /services/server/config .
37.PP
38The configuration file is a text file.
39Empty lines and lines beginning
40.B #
41are comments, and ignored.
42Each non-comment line has at least four fields:
43the server type, the service name, the network name on which to announce the service
44(typically
45.B tcp
46or
47.BR udp ),
48and the path name of the service command (module).
49Any further arguments are passed as arguments to that command.
50.PP
51Normally the server type field contains the letter
52.BR S ,
53and
54.I srv
55announces the service on the network itself, listens for incoming calls,
56and on each call invokes the command with any arguments given.
57The standard input and output of the command are set to refer to the
58network connection.
59If the server type field contains the letter
60.BR M ,
61however,
62.I srv
63starts the given command once during its own initialisation, and leaves the server
64to announce and manage its incoming calls.
65This is typically used to start self-contained services such as
66.B bootp
67and
68.BR tftpd .
69The diagnostics from all servers will appear on the standard
70error of
71.I srv
72itself.
73.PP
74For example, the default configuration file includes the following lines:
75.PP
76.EX
77.ps -2
78S infsigner tcp /dis/auth/signer.dis
79S infcsigner tcp /dis/auth/countersigner.dis
80S inflogin tcp /dis/auth/logind.dis
81S styx tcp /dis/lib/styxd.dis none clear sha md5 rc4 sha/rc4 md5/rc4
82S rstyx tcp /dis/lib/rstyxd.dis none clear sha md5 rc4 sha/rc4 md5/rc4
83S infdb tcp /dis/lib/dbsrv.dis none clear sha md5 rc4 sha/rc4 md5/rc4
84S virgil udp /dis/lib/virgild.dis
85.ps +2
86.EE
87.PP
88The arguments to
89.IR rstyxd
90and
91.IR stxyd
92(see
93.IR rstyxd (8)),
94and
95.IR dbsrv (7)
96should list the security algorithms supported by the server's
97.IR ssl (3).
98.SH FILES
99.B /services/namespace
100.br
101.B /services/server/config
102.SH SOURCE
103.B /appl/lib/srv.b
104.SH SEE ALSO
105.IR listen (1),
106.IR services (6),
107.IR cs (8),
108.IR dbsrv (7),
109.IR rstyxd (8),
110.IR svc (8)
111.SH BUGS
112Each service should arguably start in a minimal name space.