X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=doc%2Fman1%2Fhtsn.1;h=9d7ebce607b170f8ce220a914149313275fae737;hb=1c9fc237aae9afa0b8c374366562bfd52787b796;hp=d105d13a97c1523ffe2a39dcf248e2e1eb312c9d;hpb=204f007f0cf40420fc7fe7738b66d96c0547f0fe;p=dead%2Fhtsn.git diff --git a/doc/man1/htsn.1 b/doc/man1/htsn.1 index d105d13..9d7ebce 100644 --- a/doc/man1/htsn.1 +++ b/doc/man1/htsn.1 @@ -9,7 +9,7 @@ htsn \- Parse XML files from The Sports Network feed. .SH DESCRIPTION .P -The Sports Network offers an XML feed +The Sports Network offers an XML feed containing various sports news and statistics. The goal of \fBhtsn\fR is to watch the XML feed and parse the individual XML documents into files. @@ -99,8 +99,10 @@ Default: none .IP \fB\-\-pidfile\fR (Daemon mode only) Create a PID file in the given location. This is used by the init system on Unix to keep track of the running daemon. +Its parent directory must be writable by the user/group that we will +run as! -Default: /run/htsn.pid +Default: /run/htsn/htsn.pid .IP \fB\-\-run\-as\-group\fR (Daemon mode only) Run as the given system group. The PID file is @@ -141,15 +143,20 @@ so there is rarely a need to do this. .SH CONFIGURATION FILE .P Any of the command-line options mentioned above can be specified in a -configuration file instead. We look for a file named \(dq.htsnrc\(dq -in the user's home directory; its syntax is given by examples in the -htsnrc.example file (included with \fBhtsn\fR). +configuration file instead. We first look for \(dqhtsnrc\(dq in the +system configuration directory. We then look for a file named +\(dq.htsnrc\(dq in the user's home directory. The latter will override +the former. .P -If you are using the \fI\-\-run\-as\-user\fR option, that means that -the configuration file will need to go in that user's home directory -(and not, for example, root's). +The user's home directory is simply $HOME on Unix; on Windows its +wherever %APPDATA% points. The system configuration directory is +determined by Cabal; the \(dqsysconfdir\(dq parameter during the +\(dqconfigure\(dq step is used. .P -Options specified on the command-line override those in the +The file's syntax is given by examples in the htsnrc.example file +(included with \fBhtsn\fR). +.P +Options specified on the command-line override those in either configuration file. .SH BUGS