teams:dokubot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
teams:dokubot [2013-08-04 13:01] – [Configuration] 2001:4dd0:ff00:809d:67d:7bff:fe34:5b30 | teams:dokubot [2015-05-21 02:38] (current) – andrwe | ||
---|---|---|---|
Line 35: | Line 35: | ||
</ | </ | ||
- | On the server of dokuwiki | + | On the server of dokuwiki |
< | < | ||
# start bot | # start bot | ||
- | service irclog | + | systemctl |
# stop bot | # stop bot | ||
- | service irclog | + | systemctl |
# restart bot | # restart bot | ||
- | service irclog | + | systemctl |
# reload bot | # reload bot | ||
- | service irclog | + | systemctl |
# checks running bot | # checks running bot | ||
- | service | + | systemctl status |
</ | </ | ||
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 '' |
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 ''/ | ||
+ | |||
+ | <file ini / | ||
+ | [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=/ | ||
+ | ExecStop=/ | ||
+ | ExecReload=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Init-script | ||
The following can be used to control the bot on Debian systems. Just copy it to ''/ | The following can be used to control the bot on Debian systems. Just copy it to ''/ |
teams/dokubot.1375614076.txt.gz · Last modified: 2013-08-04 13:01 by 2001:4dd0:ff00:809d:67d:7bff:fe34:5b30