X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=doc%2Fadmin.texi;h=e17c136644bd8e68868a1d3751bd183e15cc70eb;hp=ff978e6e5ef5bc7ebdfddd6362fe75c2dd9503b8;hb=203dfe36da7adf2b3089e4fa4017a67409cbad70;hpb=22a3ed111c98f81f884df47bf1040a76c36e84ab diff --git a/doc/admin.texi b/doc/admin.texi index ff978e6..e17c136 100644 --- a/doc/admin.texi +++ b/doc/admin.texi @@ -1,4 +1,5 @@ @node Administration +@cindex administration @unnumbered Administration NNCP uses following files/directories you should be aware of: @@ -24,11 +25,14 @@ NNCP uses following files/directories you should be aware of: checksummed. Can be checksummed (with @file{.nock} extension removing) with @command{nncp-check -nock}. - Also it can contain @file{.seen} files, that should be cleaned too - from time to time. + Also it can contain @file{seen/} and @file{hdr/} subdirectories, + that should be cleaned too from time to time. All of that cleaning tasks can be done with @ref{nncp-rm} utility. + @cindex shared spool + @cindex setgid + @pindex umask @anchor{Shared spool} If you want to share single spool directory with multiple grouped Unix users, then you can @command{setgid} it and assure that umask @@ -47,6 +51,7 @@ $ echo 'umask: "007"' >> /usr/local/etc/nncp.hjson @ref{Log} file, for example @file{/var/spool/nncp/log}. It should be rotated. Choose you own preferable way to do it. + @pindex newsyslog Example @url{https://www.newsyslog.org/manual.html, newsyslog}'s entry: @example /var/spool/nncp/log 644 7 100 * BCYN @@ -62,6 +67,9 @@ $ echo 'umask: "007"' >> /usr/local/etc/nncp.hjson */1 * * * * nncp-reass -all -noprogress @end example +@pindex daemontools +@pindex supervise +@pindex multilog @item Possibly long running @ref{nncp-daemon}, @ref{nncp-caller}, @ref{nncp-toss}, @ref{nncp-check} daemons. As all software, they can @@ -90,17 +98,21 @@ EOF # mv /var/service/.nncp-toss /var/service/nncp-toss @end example +@pindex inetd @item @ref{nncp-daemon} can also be run as @url{https://en.wikipedia.org/wiki/Inetd, inetd} service on UUCP's port: @example -uucp stream tcp6 nowait nncpuser /usr/local/bin/nncp-daemon nncp-daemon -quiet -inetd +uucp stream tcp6 nowait nncpuser /usr/local/bin/nncp-daemon nncp-daemon -quiet -ucspi @end example +@cindex UCSPI +@pindex tcpserver @item Or it can be also run as a @command{daemontools} daemon under - @url{http://cr.yp.to/ucspi-tcp.html, UCSPI-TCP}: + @url{http://cr.yp.to/ucspi-tcp.html, UCSPI-TCP}. In the example + below it uses native daemontools's logging capability: @example # mkdir -p /var/service/.nncp-daemon/log @@ -108,13 +120,13 @@ uucp stream tcp6 nowait nncpuser /usr/local/bin/nncp-daemon nncp-daemon -quiet - # cat > run <&1 EOF # cat > log/run <