### RWReceiver configuration file  -*- sh -*-
##
## The canonical pathname for this file is ${prefix}/etc/rwreceiver.conf
##
## RCSIDENT("$SiLK: rwreceiver.conf.in 13332 2009-01-09 18:35:26Z mthomas $")

# Set to non-empty value to enable rwreceiver
ENABLED=

# These are convenience variables for setting other values in this
# configuration file; their use is not required.
prefix=/usr/local
exec_prefix=${prefix}
statedirectory=${prefix}/var/lib/rwreceiver

# If CREATE_DIRECTORIES is set to "yes", the directories named in this
# file will be created automatically if they do not already exist
CREATE_DIRECTORIES=no

# Full path of the directory containing the "rwreceiver" program
RECEIVER_BIN=${exec_prefix}/sbin

# The full path of the directory where received files will be placed
DESTINATION_DIR=${statedirectory}/destination

# The mode in which the receiver will run.  Valid values are "server"
# and "client".
MODE=client

# The name of this receiver instance
IDENTIFIER=receiver-1

# The port upon which the server listens for incoming connections.
# This is only required when running in server mode.
PORT=

# Command to run on each file once it has been received.  In the
# command, "%s" will be replaced with the full path to the received
# file, and "%I" will be replaced with the identifier of the rwsender
# that sent the file.
POST_COMMAND=

# The senders from which the receiver will receive its data.  This is
# a list of lines containing information about the senders, one line
# per sender.
#
# This variable is only used in client mode.  The format for each line
# is:
# <identifier> <machine-name>:<port>
#
# There may be any amount of whitespace before or after the
# <identifier>, and before and after <machine-name>:<port>.
#
# In this template, the line should be inserted between the line
# beginning: SENDER_SERVERS=`cat <<'END_SENDERS'
# and the line beginning: END_SENDERS
# Do not modify these lines or the backquote on the following line.
#
SENDER_SERVERS=`cat <<'END_SENDERS' # Do not modify this line
    sender-1  machine.test.org:9999
    sender-2  192.168.100.10:9998
END_SENDERS
` #Do not modify this line or the previous line

# The senders from which the receiver will receive its data.  This is
# a list of lines containing information about the senders, one line
# per sender.
#
# This variable is only used in server mode.  The format for each line
# is:
# <identifier>
#
# There may be any amount of whitespace before or after each
# <identifier>.
#
# In this template, the line should be inserted between the line
# beginning: SENDER_CLIENTS=`cat <<'END_SENDERS'
# and the line beginning: END_SENDERS
# Do not modify these lines or the backquote on the following line.
#
SENDER_CLIENTS=`cat <<'END_SENDERS' # Do not modify this line
    sender-1
    sender-2
END_SENDERS
` #Do not modify this line or the previous line


###

# When using the optional GnuTLS support (which must be compiled into
# rwreceiver), the full path the CA file (TLS_CA) must be specified,
# as well as either the full path to the program-specific PKCS#12 file
# (TLS_PKCS12) or the full paths to the program-specific certificate
# (TLS_CERT) and key (TLS_KEY) files.
#
# If the PKCS#12 file is password protected, you must set the
# RWRECEIVER_TLS_PASSWORD environment variable to the password prior
# to starting rwreceiver.

# The full path to the root CA file, PEM encoded
TLS_CA=

# The full path to the program specific PKCS#12 file, DER encoded
TLS_PKCS12=

# The full path to the program specific key file, PEM encoded
TLS_KEY=

# The full path to the program specific certificate file, PEM encoded
TLS_CERT=

###

# The type of logging to use.  Valid values are "legacy" and "syslog".
LOG_TYPE=syslog

# The lowest level of logging to actually log.  Valid values are:
# emerg, alert, crit, err, warning, notice, info, debug
LOG_LEVEL=info

# The full path of the directory where the log files will be written
# when LOG_TYPE is "legacy".
LOG_DIR=${statedirectory}/log

# The full path of the directory where the PID file will be written
PID_DIR=${LOG_DIR}

# The user this program runs as; root permission is required only when
# rwreceiver listens on a privileged port.
USER=root

# Extra options to pass to rwreceiver
EXTRA_OPTIONS=
