Morebots
(.) |
(updated documentation, apparently nobody actually bothers to read the code) |
||
| Line 1: | Line 1: | ||
Morebots (as opposed to Moarbots) is a python server admin log updatin' bot. It runs from Andrew's home directory on [[Wikitech]]. | 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 <tt>~werdnum/start_morebots.sh</tt>. 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: | |
| − | + | <pre> | |
| + | 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 | ||
| + | </pre> | ||
| − | + | The details for its identi.ca account are in Andrew's home directory on <tt>[[wikitech]]</tt> | |
| − | < | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | Sometimes | + | 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 <code>…</code>, for instance it didn't log <code>dic 29 07.01.48 <Ryan_Lane> !log virt4 is back up. br103 had a bad MAC (00:….)</code>. | It doesn't seem to like <code>…</code>, for instance it didn't log <code>dic 29 07.01.48 <Ryan_Lane> !log virt4 is back up. br103 had a bad MAC (00:….)</code>. | ||
[[Category:Bot and monitoring]] | [[Category:Bot and monitoring]] | ||
Revision as of 05:56, 25 September 2012
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:….).