Path: | ajaxim_daemon_controller.rb |
Last Update: | Thu Aug 30 19:05:09 +0300 2007 |
This is a Ruby ajaxIM server which handles all requests from drupal client.
Apache mod_proxy should be configured to redirect queries from <drupal_path/ajaxim_server> to <localhost:2000>. Here is example configuration of mod_proxy:
ProxyPass http://my_drupal/drupal/ruby_ajaxim_server http://localhost:2000/ ProxyPassReverse http://my_drupal/drupal/ruby_ajaxim_server http://localhost:2000/
Set all daemon options in daemon.config. Example configuration:
# full path to directory where logs will be stored log_dir: /home/valcker/projects/ajaxim/logs # logging is on(true) or off(false) logs: true # interval of update status check in seconds status_update_int: 180 # database settings db: host: localhost user: root password: '' db_name: drupal5 http_port: 2000
To use ajaxIM daemon you should run command(only Linux):
ruby ajaxim_daemon_controller.rb [start|stop|restart]
This will run daemon in Windows and in interactive mode in Linux:
ruby ajaxim_daemon_controller.rb run