Morebots

From Wikitech
Revision as of 05:56, 25 September 2012 by Tim (Talk | contribs)

Jump to: navigation, search

Morebots (as opposed to Moarbots) is a python server admin log updatin' bot. 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 dic 29 07.01.48 <Ryan_Lane> !log virt4 is back up. br103 had a bad MAC (00:….).

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox