blank site.

Jonas Bosson jonas at illuminet.se
Sun May 20 12:16:01 CEST 2007


Jonas Bosson wrote:
> Benjamin Henrion wrote:
>> Who is admin of the gauss machine?
>>
> 
> I am. ...and a few others with sudo-access.


The hourly cron script perhaps need a few changes to make things work:

/etc/cron.hourly/checkgauss.sh :

#!/bin/sh
#
# added by jonas
#

wget -t2 -T20 -q -O - http://gauss.ffii.org/Browse/ > /tmp/test-page.html
ecode=$?
esize=`stat -c %s /tmp/test-page.html`

if [ $ecode -gt 0 -o $esize -lt 1000 ]; then
        echo "restarting gauss, http not responding aptly, exit code:
$ecode"
        gpid=`cat /home/wiki/GaussWiki/server/mointwisted.pid`
        kill -9 $gpid
        sleep 1
        /etc/init.d/gausswiki start
fi



More information about the Gauss-parl mailing list