← Back to team overview

beeseek-devs team mailing list archive

BeeSeek Classroom - Configuration files

 

Here's a ConfigHowTo for the wiki :)
In hive, the configuration file is located in /etc/hive.conf. His may be:
  [Section]
  OptionName = Value
  # Comment
Note that for now you can't do
  [Section]            # Comment-1
  OptionName = Value   # Comment-2
If someone want to implement this feature, I will upload it soon!
In the past, the parser could accept also ":" or a white space instead of "=":
  Option = Value
  Option: Value
  Option Value
But now I've removed this feature because I think a consolidate syntax is more nice. If you want, I will readd the feature! :D


Those are the current available options with theirs default values:
  [General]
  # If true, when you launch hive it will
  # return you the control of the terminal, else
  # it will print all message in the stdout/err
  Daemonic = True
  # Where the application save the messages
  LogFile = /var/log/hive/hive.log
  # The level of the messages which may be
  # printed and saved in the log
  # 0 = None, 1 = Debug, 2 = Info, 3 = Warning
  # 4 = Error[, 5 = Critical] (if the value is
  # higher than 4, it will be ignored)
  LogLevel = 3
  # Extension modules location
  Modules = /etc/hive/modules
  # Tick every x seconds to check changes in the
  # configuration
  # It doesn't check if the file is changed, but
  # if hive-manager has updated the information
  RefreshTimer = 3
  # If true, hive won't crash on errors (but it
  # will crash anyhow on critical errors)
  KeepAlive = False

  [Connection]
  # The hostname or IP address where hive should
  # listen clients
  HostName = localhost
  # Ports where hive should listen (default values
  # should be reviewed)
  Ports = 50007, 50008, 50009
  # Timeout for clients
  # If they don't send a message for x seconds,
  # the server will close the connection
  Timeout = 300

  [Cache]
  # Location where hive may store its cache files
  Directory = /var/cache/hive
  # If hive should store message in cache
  Enabled = True
  # Ignore files in cache older than x seconds
  Timeout = 700

The configuration should be similar to this, but currently options name and categories are different.
Change this is not very difficult but it requires some minutes, so I will update it later :D

That's all! For any question, text me!

-- 
Andrea Corbellini <andrea.corbellini@xxxxxxxxxxx>
Blog: http://andreabs.wordpress.com/
Launchpad: https://launchpad.net/~andrea-bs

Attachment: signature.asc
Description: This is a digitally signed message part