| | 14 | = About Czar Pages: What to do if the czar pages don't update = |
| | 15 | IPP Czar pages are updated every TODO minutes by the czarpoll.pl script. This script runs on ipp004 as ipp user within a screen session. |
| | 16 | |
| | 17 | If, for some reason, czarpoll crashed (it likely means that gpc1 mysql server has been restarted), 1) ssh as ipp on ipp004, 2) identify the screen session which is running and reattach it, 3) restart czarpoll and then 4) '''detach from the screen session'''. The sequence of commands should therefore be something like: |
| | 18 | |
| | 19 | 1) ssh as ipp on ipp004 |
| | 20 | {{{ |
| | 21 | yourhost:~$ ssh ipp@ipp004 |
| | 22 | }}} |
| | 23 | |
| | 24 | 2) Identify the screen session which is running and reattach it |
| | 25 | {{{ |
| | 26 | ipp@ipp004:/home/panstarrs/ipp>screen -list |
| | 27 | There is a screen on: |
| | 28 | 18965.CzarPoll (Attached) |
| | 29 | 1 Socket in /var/run/screen/S-ipp. |
| | 30 | |
| | 31 | ipp@ipp004:/home/panstarrs/ipp>screen -r 18965.CzarPoll |
| | 32 | |
| | 33 | (you see then the last lines of the display, e.g.: |
| | 34 | Total time : 0:55.57s |
| | 35 | CPU utilisation (percentage) : 57.7% |
| | 36 | }}} |
| | 37 | |
| | 38 | 3) Restart czarpoll |
| | 39 | {{{ |
| | 40 | ipp@ipp004:/home/panstarrs/rhenders/trunk/tools>./czarpoll.pl |
| | 41 | }}} |
| | 42 | |
| | 43 | 4) Detach from the screen session by typing '''CTRL-A d''' |
| | 44 | {{{ |
| | 45 | CTRL-A d |
| | 46 | }}} |
| | 47 | |
| | 48 | The terminal window is cleared and you should see something like: |
| | 49 | {{{ |
| | 50 | [detached] |
| | 51 | ipp@ipp004:/home/panstarrs/ipp> |
| | 52 | }}} |
| | 53 | You can safely logout or do other work |