**** FEDMessage Daemon, ver1.0 Nov 2007 *** FEDMessage Daemon is a daemon program for inserting the messages of FeeServer to MySQL DB. *In this document, all works are done in the directory /home/trd/fedmsg. *MySQL DB should be ready before compiling. * @compiling and installing_____________________________________________ Before compiling, you should set configuration file and copy to /etc/trd/. Configuration file is ./src/fedmsg.conf. In that file, HOST, DB, USER, PASSWD and CALLED_MSG_CH are described. To compile: after check out from subversion and set configuration file, execute the following commands ./bootstrap ./configure make in ./src directory, you can find executable files "fedmsgd" and "retrieve_msg". A file ./src/fedmsgd is a daemon program for inserting the date to MySQL DB. On the other hand, ./src/retrieve_msg is for fetching the data from MySQL DB. And ./fedmsgd exits(not ./src/fedmsgd). This is a startup script for daemon. To install: If you execute following command "make rpm", then the rpm package will be created and you can install by using that. Three files (./fedmsgd, ./src/fedmsgd and ./src/retrieve_msg) will be installed (/etc/init.d/fedmsgd, /usr/bin/ fedmsgd and /usr/bin/retrieve_msg). To run: Same as other daemon's way. Add a command to "/etc/init.d/fedmsgd". Start :/etc/init.d/fedmsgd start Stop :/etc/init.d/fedmsgd stop Status :/etc/init.d/fedmsgd status Restart:/etc/init.d/fedmsgd restart or restart the computer. In latter case, it is necessary to set rc. @retrieve_msg______________________________________________________________ retrieve_msg is a program for fetching data from DB. Though it is possible to use only a command "retrieve_msg", you should use options(--help). --help : show help -d [ --detector ] arg : detector : REGEXP -s [ --source ] arg : source : REGEXP -D [ --description ] arg : Description : REGEXP -M [ --loglevel-max ] arg : Maximum Loglevel : Integer [ min<=lvl<=max ] -m [ --loglevel-min ] arg : minimum Loglevel : Integer -C [ --create-begin ] arg : beginning time of create_time : TIME [ YYYY-MM-DD hh:mm:ss ] -c [ --create-end ] arg : end time of create_time : TIME -I [ --insert-begin ] arg : beginning time of insert_time : TIME -i [ --insert-end ] arg : end time of insert_time : TIME *REGEXP: if you select datas which "abc" is included in, you can type as following. ex1) >retrieve_msg -d abc ex2) >retrieve_msg -d abc -s def (abc && def) *TIME: if you select the data by using only date, you can use following formats. > YYYY-MM-DD or YYYYMMDD (ex : retreive_msg -I20071023)