X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Fadmin.texi;h=11c26ecd570b8c42dd0fdd5855eab68c3603bebc;hb=197089349d88d2f4fc927c095610579b4efb6d77;hp=7c8420230db141c3bd3ea794d6ed2cd026f99a0f;hpb=745d9fafe84b0745b84d93900722216dde6b88cc;p=nncp.git diff --git a/doc/admin.texi b/doc/admin.texi index 7c84202..11c26ec 100644 --- a/doc/admin.texi +++ b/doc/admin.texi @@ -20,8 +20,12 @@ NNCP uses following files/directories you should be aware of: Partly transferred files are stored with @file{.part} suffix. And possibly they also require cleanup if they are completely lost. - Also it can contain @file{.seen} files, that should be cleaned too - from time to time. + It can contain @file{.nock} files: fully downloaded, but still not + checksummed. Can be checksummed (with @file{.nock} extension removing) + with @command{nncp-check -nock}. + + 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. @@ -60,8 +64,8 @@ $ echo 'umask: "007"' >> /usr/local/etc/nncp.hjson @item Possibly long running @ref{nncp-daemon}, @ref{nncp-caller}, - @ref{nncp-toss} daemons. As all software, they can fail and you - should place them under some supervisor control. + @ref{nncp-toss}, @ref{nncp-check} daemons. As all software, they can + fail and you should place them under some supervisor control. For example you can use @url{http://cr.yp.to/daemontools.html, daemontools} for that task to run them under probably existing @@ -91,12 +95,13 @@ EOF @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 @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 @@ -104,13 +109,13 @@ uucp stream tcp6 nowait nncpuser /usr/local/bin/nncp-daemon nncp-daemon -quiet - # cat > run <&1 EOF # cat > log/run <