DokuWiki

It's better when it's simple

User Tools

Site Tools


teams:dokubot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
teams:dokubot [2013-08-04 11:34] 2001:4dd0:ff00:809d:67d:7bff:fe34:5b30teams:dokubot [2015-05-21 02:38] (current) andrwe
Line 35: Line 35:
 </code> </code>
  
-On the server of dokuwiki an [[#init-script]] exists:+On the server of dokuwiki [[#systemd-file]] exists:
 <code> <code>
 # start bot # start bot
-service irclog start+systemctl start irclog
 # stop bot # stop bot
-service irclog stop+systemctl stop irclog
 # restart bot # restart bot
-service irclog restart+systemctl restart irclog
 # reload bot # reload bot
-service irclog reload+systemctl reload irclog
 # checks running bot # checks running bot
-service irclog check+systemctl status irclog
 </code> </code>
  
Line 53: Line 53:
 ===== Configuration ===== ===== Configuration =====
  
-There is an example configuration file in the git.+==== Main ==== 
 + 
 +There is an example configuration file in the git.\\ 
 +Move that to irclog.config.php within the directory of the bot-script (irclog.pl) and adapt it.
  
 The parameters you have to change are: The parameters you have to change are:
Line 72: Line 75:
   * irc_* for automatic messages   * irc_* for automatic messages
  
-===== Init-script =====+==== Special commands ==== 
 + 
 +The file ''irclog.special.pl'' is loaded by the bot and contains the funciton ''special()''.\\ 
 +This function implements bot commands by checking for commands within the message. 
 + 
 +===== systemd-file ===== 
 + 
 +The following systemd.service file controls irclog. 
 +Copy it to ''/etc/systemd/system/irclog.service'' and activate it with ''systemctl enable irclog''
 + 
 +<file ini /etc/systemd/system/irclog.service> 
 +[Unit] 
 +Description=start dokubot for logging IRC messages 
 +After=mysql.service 
 + 
 +[Service] 
 +User=irclog 
 +Group=irclog 
 +Type=forking 
 +Restart=no 
 +TimeoutSec=5min 
 +RemainAfterExit=yes 
 +ExecStart=/var/www/irclog/htdocs/irclog.pl -s 
 +ExecStop=/var/www/irclog/htdocs/irclog.pl -x 
 +ExecReload=/var/www/irclog/htdocs/irclog.pl -r 
 + 
 +[Install] 
 +WantedBy=multi-user.target 
 + 
 +</file> 
 + 
 + 
 +===== Init-script - deprecated =====
  
 The following can be used to control the bot on Debian systems. Just copy it to ''/etc/init.d/irclog''. The following can be used to control the bot on Debian systems. Just copy it to ''/etc/init.d/irclog''.
Line 227: Line 262:
   * msgstore cleanup   * msgstore cleanup
   * zabbix monitoring   * zabbix monitoring
 +  * [[https://github.com/splitbrain/irclogger/issues]]
teams/dokubot.1375608850.txt.gz · Last modified: 2013-08-04 11:34 by 2001:4dd0:ff00:809d:67d:7bff:fe34:5b30

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki