etc/jerbil/jerbil.rb in jerbil-1.3.3 vs etc/jerbil/jerbil.rb in jerbil-1.4.5

- old
+ new

@@ -1,83 +1,105 @@ # -# Configuration Options for: Jelly::Options +# Configuration Options for: Jellog::Config # +# Path to a writeable directory where Jellog will save log files. +#log_dir "/var/log/jerbil" + +# Controls the amount of logging done by Jellog +# +# * :system - standard message, plus log to syslog +# * :verbose - more generous logging to help resolve problems +# * :debug - usually used only for resolving problems during development +# +#log_level :system + # Number of log files to retain at any time, between 0 and 20 #log_rotation 2 -# Location for Jelly (logging utility) to save log files -#log_dir "/var/log/jerbil" +# Size of a log file (in MB) before switching to the next log, upto 20 MB +#log_length 1 -# Set the string to be used for marking the log with logger.mark -#log_mark " ===== Mark =====" - # Reset the logfile when starting logging by setting to true, otherwise append to # existing log #log_reset false -# Setting to true (the default) will flush log messages immediately, which is useful if you -# need to monitor logs dynamically -#log_sync true +# Set to false to suppress colourful logging. Default colours can be changed by calling +# #colours= method +#log_coloured true -# Size of a log file (in MB) before switching to the next log, upto 20 MB -#log_length 1 - -# Format string for time stamps. Needs to be a string that is recognised by String.strftime +# Format string for time stamps. Needs to be a string that is recognised by String#strftime # Any characters not recognised by strftime will be printed verbatim, which may not be what you want #log_date_time_format "%Y-%m-%d %H:%M:%S" -# Controls the amount of logging done by Jelly -# -# * :system - standard message, plus log to syslog -# * :verbose - more generous logging to help resolve problems -# * :debug - usually used only for resolving problems during development -# -#log_level :system +# Setting to true (the default) will flush log messages immediately, which is useful if you +# need to monitor logs dynamically +#log_sync true -# Set to false to suppress colourful logging. Default colours can be changed by calling -# colours= method -#log_coloured true +# Set the string to be used for marking the log with logger.mark +#log_mark " ===== Mark =====" +# Set to true to prevent system log calls from logging to syslog as well +#disable_syslog false + # # Configuration Options for: JerbilService::Config # -# private key dir used to authenticate privileged users -#key_dir "/var/run/jerbil" - -# Set the default environment for service commands etc. +# Set the environment for the service to run in. # -# Can be one of :prod, :test, :dev +# Can be one of the following: +# :prod - for productionised services in use across a network +# :test - for testing a release candidate, e.g. also across the network +# :dev - for developing the next release +# +# Services can be running in all three environments at the same time. Clients +# will need to use the appropriate config file to connect with each environment. #environment :prod -# Set this only to use a Jerbil Server that is not running in the production environment -#jerbil_env +# a writable directory where Jerbil stores a private key for each service. +# This key is used to authenticate systems operations, such as stopping the service. +# It is not used for client interactions, which can require a separate service key. +#key_dir "/var/run/jerbil" -# directory used to store the daemons pid to assist in stopping reluctant servers +# A writable directory used to store the pid to assist in stopping reluctant servers #pid_dir "/var/run/jerbil" +# Set this only to use a Jerbil Server that is not running in the production environment +#jerbil_env + # # Configuration Options for: Jerbil::Config # -# A secret key available to all Jerbil Servers and used to authenticate the initial registration. -# If security is an issue, ensure that this config file is readable only be trusted users -secret "hK78l/z1mIDBOs+/Qx2q7k5beExChmdc3tpw81qTBNLmcQknRrY93oHzIAd3DNo2" +# A valid IPv4 address for the LAN on which the servers will operate. +# Note that the broker uses this address to search for all servers. +# Therefore a large range will take a long time to search. Set the net_mask to limit this. +#net_address "192.168.0.1" # A valid netmask for the hosts to search using the above net address. This should be # between 24 (a class C network) and 30, beyound which its not much of a network. If you only have a few # hosts it will be easier to restrict them to a small subnet. # # To find out more about netmasks, go to [UnixWiz](http://www.unixwiz.net/techtips/netmask-ref.html). #net_mask 26 -# Provide a timeout when searching for jerbil servers on the net during startup. +# Provide a timeout in seconds when searching for jerbil servers on the net during startup. # Depending on the size of the net mask this timeout may make the search long. # The default should work in most cases #scan_timeout 0.1 -# A valid IPv4 address for the LAN on which the servers will operate. -# Note that the broker uses this address to search for all servers. -# Therefore a large range will take a long time to search. Set the net_mask to limit this. -#net_address "192.168.0.1" +# Define how many times the monitor process will check for other servers +# at start up. Limited to at least once and at most 10 times. Probably is not need +# to check more than 3 times unless you set a very short scan timeout. +#check_count 3 + +# Define the delay between successive checks carried out by the monitor at start up. +# Setting it to 0 will cause the checks to be completed without delay. The upper limit is +# an hour for no particular reason. Default should work for most cases. Could be quicker on smaller +# nets with fewer machines to check each time. +#loop_time 30 + +# A secret key available to all Jerbil Servers and used to authenticate the initial registration. +# If security is an issue, ensure that this config file is readable only be trusted users +secret "Change Me!"