blob: 9e319e60bd334c189a081f7d113eac50844fba28 [file] [log] [blame]
rsc058b0112005-01-03 06:40:20 +00001.TH 9PSERVE 4
2.SH NAME
39pserve \- announce and multiplex 9P service
4.SH SYNOPSIS
5.B 9pserve
6[
rsc5c84c442005-03-21 17:24:21 +00007.B -lv
8]
9[
10.B -A
11.I aname
12.I afid
13]
14[
15.B -M
16.I msize
rsc058b0112005-01-03 06:40:20 +000017]
18.I addr
19.SH DESCRIPTION
20On Plan 9, when a user-level file server mounts itself into a name space
21or posts itself in
22.BR /srv ,
23the Plan 9 kernel multiplexes the potentially many processes
24accessing the server into a single 9P conversation.
25The user-level server need not concern itself with how many
26processes are accessing it or with cleaning up after a process when it
27exits unexpectedly.
28On Unix,
29.I 9pserve
30takes the place of the Plan 9 kernel, multiplexing clients onto
31a single server conversation and cleaning up after clients when
32they hang up unexpectedly.
33.PP
34.I 9pserve
35announces a 9P service on
36.I addr
37and multiplexes any 9P clients connecting to
38.I addr
39into a single conversation with a 9P server on
40.IR 9pserve 's
41standard input and output.
42When a client hangs up,
43.I 9pserve
44flushes any outstanding 9P transactions
45and clunks any outstanding fids belonging to the client.
46.PP
47.I 9pserve
48is typically not invoked directly; use
49.IR post9pservice (3)
50instead.
rsc5c84c442005-03-21 17:24:21 +000051.PP
52The options are:
53.TP
54.B -l
55logging; write a debugging log to
56.IB addr .log \fR.
57.TP
58.B -v
59verbose; more verbose when repeated
60.TP
61.B -A
62rewrite all attach messages to use
63.I aname
64and
65.IR afid ;
66used to implement
67.IR srv (4)'s
68.B -a
69option
70.TP
71.B -M
72do not initialize the connection with a
73.B Tversion
74message;
75instead assume 9P2000 and a maximum message size of
76.IR msize
77.PD
rsc058b0112005-01-03 06:40:20 +000078.SH "SEE ALSO
79.IR intro (4),
rsc30f8bea2006-07-23 03:01:04 +000080.IR intro (9p),
81.IR 9pfuse (4)
rsc058b0112005-01-03 06:40:20 +000082.SH SOURCE
rscc3674de2005-01-11 17:37:33 +000083.B \*9/src/cmd/9pserve.c