morebots

From Wikitech
Revision as of 16:51, 12 January 2013 by MZMcBride (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

morebots is a Python server admin log updatin' bot.

It listens in these channels on irc.freenode.net:

  • #wikimedia-operations
  • #wikimedia-tech

And saves the log to this wiki on Server admin log (organised by date, time and nickname).

Setup

It runs from Andrew's home directory on wikitech. It runs from a shell script restart loop at ~werdnum/start_morebots.sh. It is started automatically from /etc/rc.local so it's not usually necessary to run this shell script directly.

Sometimes the python client gets stuck. So kill it and let it restart itself:

tstarling@wikitech:~$ ps -C python -f
UID        PID  PPID  C STIME TTY          TIME CMD
werdnum   3743  3723  0 Aug31 ?        00:24:26 python morebots.py
tstarling@wikitech:~$ sudo kill 3743
[sudo] password for tstarling: 
tstarling@wikitech:~$ ps -C python -f
UID        PID  PPID  C STIME TTY          TIME CMD
werdnum  25417  3723  2 05:44 ?        00:00:00 python morebots.py

The details for its identi.ca account are in Andrew's home directory on wikitech

Sometimes there are multiple copies running, because people ignore these instructions and run the shell script loop multiple times. It's fun to watch multiple python clients fighting over the right to use the nickname, but other than that, there's no point in running the shell script manually.

It doesn't seem to like , for instance it didn't log <Ryan_Lane> !log virt4 is back up. br103 had a bad MAC (00:….).

See also

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox