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 13:01] – [Configuration] 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 77: Line 77:
 ==== Special commands ==== ==== Special commands ====
  
-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.1375614076.txt.gz · Last modified: 2013-08-04 13:01 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