]> Cypherpunks.ru repositories - nncp.git/blob - doc/cmd/nncp-daemon.texi
Merge branch 'develop'
[nncp.git] / doc / cmd / nncp-daemon.texi
1 @node nncp-daemon
2 @section nncp-daemon
3
4 @example
5 $ nncp-daemon [options]
6     [-maxconn INT] [-bind ADDR] [-inetd]
7     [-autotoss*] [-nock] [-mcd-once]
8 @end example
9
10 Start listening TCP daemon, wait for incoming connections and run
11 @ref{Sync, synchronization protocol} with each of them. You can run
12 @ref{nncp-toss} utility in background to process inbound packets from
13 time to time.
14
15 @option{-maxconn} option specifies how many simultaneous clients daemon
16 can handle. @option{-bind} option specifies @option{addr:port} it must
17 bind to and listen.
18
19 It could be run as @command{inetd} service, by specifying
20 @option{-inetd} option. Pay attention that because it uses
21 @code{stdin}/@code{stdout}, it can not effectively work with IO timeouts
22 and connection closing can propagate up to 5 minutes in practice.
23 Example inetd-entry:
24
25 @verbatim
26 uucp    stream  tcp6    nowait  nncpuser        /usr/local/bin/nncp-daemon      nncp-daemon -quiet -inetd
27 @end verbatim
28
29 @option{-autotoss} option runs tosser on node's spool every second
30 during the call. All @option{-autotoss-*} options is the same as in
31 @ref{nncp-toss} command.
32
33 Read @ref{CfgNoCK, more} about @option{-nock} option.
34
35 @option{-mcd-once} option sends @ref{MCD} announcements once and quits.
36 Could be useful with inetd-based setup, where daemons are not running.