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
teams:dokubot [2015-05-21 02:36] – [Usage] andrweteams:dokubot [2015-05-21 02:38] (current) andrwe
Line 79: Line 79:
 The file ''irclog.special.pl'' is loaded by the bot and contains the funciton ''special()''.\\ 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. This function implements bot commands by checking for commands within the message.
-===== Init-script =====+ 
 +===== 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''.
teams/dokubot.txt · Last modified: 2015-05-21 02:38 by andrwe

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