annna-start-checker - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
annna-start-checker (309B) | |
--- | |
1 #!/bin/sh | |
2 # | |
3 # Watch for annna, she's worth it. | |
4 # | |
5 | |
6 export PATH="$PATH:/home/annna/bin" | |
7 | |
8 { | |
9 while /bin/true; | |
10 do | |
11 # Is annna still in her world? | |
12 iipid="$(pgrep -U annna -x ii)" | |
13 | |
14 if [ -z "$iipid" ]; | |
15 then | |
16 annna-stop-services >/dev/null 2>&1 | |
17 sleep 2 | |
18 annna-start-main >/dev/null 2>&1 | |
19 fi | |
20 | |
21 sleep 5 | |
22 done | |
23 } & | |
24 |