This is an old revision of the document!
Table of Contents
DokuBot
Usage
This script controls an irc logging bot with command support. Available options: -c - config file to use -h - this help -r - reload configurations and reconnects to irc and database if needed -s - start bot -t - check whether the bot is still running -x - stop bot
On the server of dokuwiki an init-script exists:
# start service irclog start # stop service irclog stop # restart service irclog restart # reload service irclog reload
Functions
- reconnects after Netsplit or kick
- reloads configuration files
- restarts itself on changes for database or irc configuration
- supports MSS (Message Storage System)
- implements test function for proper monitoring
- implements proper logging (inlc. debug mode)
- supports different configuration files (e.g. for testing)
MSS (Message Storage System)
This system is designed by Andrwe.
It stores messages addressed to someone in the channel who isn't online anymore in a database.
After reconnecting of the addressed user the message is send to him as private message including the link to irc log website.
It is activated by starting the message with '@Nickname' e.g. @Andrwe.
Currently the messages are only deleted after there were successfully send to the target.
TODO
- check for already running process
- increase error checks
- increase error logging
- write help command
- msgstore cleanup
- zabbix monitoring
old version
DokuBot is our IRC bot. On netsplits or when MySQL goes down, the bot dies. Anika is usually the first one to notice. Here's how to restart it:
$> sudo su - #> /etc/init.d/irclog stop
Now it should be gone. In reality it probably isn't. Check with ps ax and kill it:
#> ps ax |grep irc 11669 ? S 4:46 /usr/bin/perl ./irclogger.pl #> kill 11669
Then restart
#> /etc/init.d/irclog start
To check if it's alive join the IRC channel and ask him for a beer.