Artifact [85a9dce220]

Artifact 85a9dce220d3d675e0fe6ab26e3b05b953bf30af:

Wiki page [Manual] by rkeene on 2014-02-11 16:50:30.
D 2014-02-11T16:50:30.657
L Manual
P 8a39464402bcf0aed5516d8932998d350a02f642
U rkeene
W 3111
filed - serve files over HTTP
<A NAME="lbAC">&nbsp;</A>
<A NAME="lbAD">&nbsp;</A>
serves files over HTTP as minimally as possible.  Only static files (i.e., files that never change or are replaced) are supported.
<A NAME="lbAE">&nbsp;</A>
<DT><B>-h (or --help)</B>
Prints detailed usage information.
<DT><B>-d (or --daemon)</B>
to become a daemon after initializing
the listening TCP socket and log files.
<DT><B>-v (or --version)</B>
to print out its version number and then exit.
<DT><B>-b (or --bind)</B>
Specifies the address to listen for incoming HTTP
requests on.
<DT><B>-p (or --port)</B>
Specifies the TCP port number to listen for incoming HTTP
requests on.
<DT><B>-t (or --threads)</B>
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.
<DT><B>-c (or --cache)</B>
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.
<DT><B>-l (or --log)</B>
Specifies a filename to open for writing log entries.  Log
entries are made for various stages in transfering files.
The log file is opened before switching users (see &quot;-u&quot;)
and root directories (see &quot;-r&quot;).  The log file is never
closed so log rotation without stopping the daemon is will
not work.  The value of &quot;-&quot; indicates that standard output
should be used for logging.  If the filename begins with a &quot;|&quot;
then a process is started and used for logging instead of a
<DT><B>-u (or --user)</B>
Specifies the user to switch user IDs to before servicing
requests.  The default is not change user IDs.
<DT><B>-r (or --root)</B>
Specifies the directory to act as the root directory for
the file server.  If this option is specified, <A HREF="">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.
<A NAME="lbAF">&nbsp;</A>
Roy Keene
<I>&lt;<A HREF=""></A>&gt;</I>

Z f542068cf2f8a32f3feaef4a13d5b26c