Changes To Manual

Changes to "Manual" between 2014-02-07 21:49:22 and 2014-02-07 21:51:22

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
1
2
3

4
5

6
7
8


9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25
26

27

28
29
30
31

32
33

34
35
36
37

38
39
40
41
42

43
44
45
46
47

48
49
50
51
52

53
54
55
56
57
58
59

60
61
62
63
64
65
66
67

68
69
70
71
72

73
74
75
76
77
78
79
80
81
82
83


84
85

86

87
88
89
90
91
92
93
94
95



-


-



-
-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-


-

-




-


-




-





-





-





-







-








-





-











-
-


-

-









<H1>FILED</H1>
Section: User Commands  (1)<BR>Updated: 06 Feb 14<BR><A HREF="#index">Index</A>
<HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

filed - serve files over HTTP
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>


<B>filed</B>

&#91;{<B>-h</B>|<B>--help</B>}&#93;

&#91;{<B>-d</B>|<B>--daemon</B>}&#93;

&#91;{<B>-b</B>|<B>--bind</B>}

<I>address</I>&#93;

&#91;{<B>-p</B>|<B>--port</B>}

<I>port</I>&#93;

&#91;{<B>-t</B>|<B>--threads</B>}

<I>count</I>&#93;

&#91;{<B>-c</B>|<B>--cache</B>}

<I>entries</I>&#93;

&#91;{<B>-u</B>|<B>--user</B>}

<I>user</I>&#93;

&#91;{<B>-r</B>|<B>--root</B>}

<I>directory</I>&#93;

<P>

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<I>FILED</I>

serves files over HTTP as minimally as possible.  Only static files (i.e., files that never change or are replaced) are supported.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>
<DT><B>-h (or --help)</B>

<DD>
Prints detailed usage information
<P>
<DT><B>-d (or --daemon)</B>

<DD>
Instructs filed to become a daemon after initializing
the listening TCP socket and log files.
<P>
<DT><B>-b (or --bind)</B>

<DD>
Specifies the address to listen for incoming HTTP
requests on.
<P>
<DT><B>-p (or --port)</B>

<DD>
Specifies the TCP port number to listen for incoming HTTP
requests on.
<P>
<DT><B>-t (or --threads)</B>

<DD>
Specifies the number of worker threads to create. Each
worker thread can service one concurrent HTTP session.
Thus the number of threads created will determine how
many simultaneous transfers will be possible.
<P>
<DT><B>-c (or --cache)</B>

<DD>
Specifies the number of file information cache entries
to allocate.  Each cache entry holds file information as
well as an open file descriptor to the file, so resource
limits (i.e., ulimit) should be considered.  This should
be a prime number for ideal use with the lookup method.
<P>
<DT><B>-u (or --user)</B>

<DD>
Specifies the user to switch user IDs to before servicing
requests.  The default is not change user IDs.
<P>
<DT><B>-r (or --root)</B>

<DD>
Specifies the directory to act as the root directory for
the file server.  If this option is specified, <A HREF="../man2/chroot.2.html">chroot</A>(2)
is called.  The default is not change root directories,
that is, the &quot;/&quot; directory is shared out.  This will
likely be a security issue, so this option should always
be used.
<P>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>


Roy Keene
<I>&lt;<A HREF="mailto:filed@rkeene.org">filed@rkeene.org</A>&gt;</I>

<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">AUTHOR</A><DD>
</DL>