X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=doc%2Fhtsnrc.example;h=3a2347c9e82a7d22b8d230c293d1cc9028213b25;hb=4833dc57c60f4aeaa160ec5e599507653a47809b;hp=2158504374e5ea5885106009311b1b18db94316c;hpb=4e53c500d87df2dbe1413d47562786fe4cc88f2a;p=dead%2Fhtsn.git diff --git a/doc/htsnrc.example b/doc/htsnrc.example index 2158504..3a2347c 100644 --- a/doc/htsnrc.example +++ b/doc/htsnrc.example @@ -1,29 +1,21 @@ # Example configuration file for htsn. For this to take effect, you -# would need to place it in $HOME/.htsnrc. On Windows, it probably -# needs to go in %APPDATA%, or C:\Users\\Application Data. - - -# The username used to connect to the feed. +# would need to place it in either the user or global configuration +# directories. # -# Default: none (required) +# For a user, that's either $HOME/.htsnrc on Unix or +# %APPDATA%\.htsnrc (e.g. C:\Users\\Application +# Data\.htsnrc) on Windows. # -# username = "whoever" +# The global configuration directory is determined by Cabal. The +# "sysconfdir" parameter during the "configure" step will be used. On +# Unix, it's probably /etc, and this file will need to go in +# /etc/htsnrc. - -# The password associated with your TSN username. -# -# Default: none (required) +# Run in the background as a daemon? # -# password = "whatever" - - -# By default, XML files will be written to the current working -# directory. Often this is not desirable, and you would rather save -# them to a specific location. Specify it here. -# -# Default: "." +# Default: false # -# output-directory = "/var/lib/htsn" +# daemonize = true # A list of hostnames that supply the feed. You probably don't need to @@ -33,16 +25,7 @@ # "feed2.sportsnetwork.com", # "feed3.sportsnetwork.com"] # -# feed-hosts = [ "hostname1", "hostname2", ... ] - - -# Do you want to log to syslog? On Windows this will attempt to -# communicate (over UDP) with a syslog daemon on localhost, which will -# most likely not work. -# -# Default: False -# -# syslog = True +# feed_hosts = [ "hostname1", "hostname2", ... ] # If you specify a file path here, logs will be written to it @@ -52,7 +35,7 @@ # # Default: none # -# log_file = /var/log/htsn/htsn.log +# log_file = "/var/log/htsn/htsn.log" # How verbose should the logs be? Valid levels are, @@ -64,3 +47,67 @@ # Default: "INFO" # # log_level = "WARNING" + + +# By default, XML files will be written to the current working +# directory. Often this is not desirable, and you would rather save +# them to a specific location. Specify it here. +# +# Default: "." +# +# output_directory = "/var/lib/htsn" + + +# The password associated with your TSN username. +# +# Default: none (required) +# +# password = "whatever" + + +# (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. +# +# If necessary, its parent directory will be created with owner/group +# set to the appropriate user/group, but at most one directory will be +# created (that is, we won't create an entire directory tree). +# +# Default: /run/htsn/htsn.pid +# +# pidfile = /var/run/htsn/htsn.pid + + +# (Daemon mode only) Run htsn as the specified system grup. The PID +# file is written before privileges are dropped, so the only +# privileges needed by htsn are those necessary to write the XML files +# and (optionally) the log file. +# +# Default: the current group +# +# run_as_group = "htsn" + + +# (Daemon mode only) Run htsn as the specified system user. The PID +# file is written before privileges are dropped, so the only +# privileges needed by htsn are those necessary to write the XML files +# and (optionally) the log file. +# +# Default: the current user +# +# run_as_user = "htsn" + +# Do you want to log to syslog? On Windows this will attempt to +# communicate (over UDP) with a syslog daemon on localhost, which will +# most likely not work. +# +# Default: false +# +# syslog = true + + +# The username used to connect to the feed. +# +# Default: none (required) +# +# username = "whoever"