Admin/isatest/isatest-settings
author sultana
Tue, 03 Apr 2012 16:45:44 +0100
changeset 47309 9d02327ede56
parent 47214 dd04c8173bb2
child 47707 7a316fef84a4
permissions -rw-r--r--
added me to isatest email list
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31310
b5365a9db718 uniform treatment of shellscript mode;
wenzelm
parents: 29926
diff changeset
     1
# -*- shell-script -*- :mode=shellscript:
31582
4753c317d5c1 eliminated cvs ids;
wenzelm
parents: 31310
diff changeset
     2
#
22410
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
     3
# Author: Gerwin Klein, NICTA
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
     4
#
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
     5
# DESCRIPTION: common settings for the isatest-* scripts
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
     6
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
     7
# source bashrc, we're called by cron
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
     8
. ~/.bashrc
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
     9
47214
dd04c8173bb2 more robust ISABELLE_JDK_HOME settings, based on exisiting JAVA_HOME provided by isatest shell environment (which depends a lot on the host);
wenzelm
parents: 47213
diff changeset
    10
export ISABELLE_JDK_HOME="$JAVA_HOME"
47213
eb5f812d15e2 more explicit isatest environment settings (from private .bashrc);
wenzelm
parents: 47103
diff changeset
    11
22410
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    12
# canoncical home for all platforms
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    13
HOME=/home/isatest
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    14
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    15
## send email on failure to
38250
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    16
MAILTO="\
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    17
kleing@cse.unsw.edu.au \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    18
nipkow@in.tum.de \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    19
berghofe@in.tum.de \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    20
lp15@cam.ac.uk \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    21
makarius@sketis.net \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    22
blanchet@in.tum.de \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    23
boehmes@in.tum.de \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    24
bulwahn@in.tum.de \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    25
hoelzl@in.tum.de \
b32a44361186 added Lars Noschinski to isatest report
haftmann
parents: 37834
diff changeset
    26
krauss@in.tum.de \
47103
187cac088582 more isatest subscribers;
wenzelm
parents: 45908
diff changeset
    27
noschinl@in.tum.de \
47309
9d02327ede56 added me to isatest email list
sultana
parents: 47214
diff changeset
    28
kuncar@in.tum.de \
9d02327ede56 added me to isatest email list
sultana
parents: 47214
diff changeset
    29
ns441@cam.ac.uk"
22410
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    30
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    31
LOGPREFIX=$HOME/log
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    32
MASTERLOG=$LOGPREFIX/isatest.log
37834
c78327288b50 use different log server (macbroy23 down)
kleing
parents: 33467
diff changeset
    33
LOGSERVER=macbroy28.informatik.tu-muenchen.de
22410
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    34
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    35
ERRORDIR=$HOME/var
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    36
ERRORLOG=$ERRORDIR/error.log
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    37
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    38
RUNNING=$HOME/var/running
da313b67a04d moved all isatest/cron job related files to own directory
kleing
parents:
diff changeset
    39
28567
3caee0cd91d8 change DISTPREFIX to not use yet another filesystem
kleing
parents: 28539
diff changeset
    40
DISTPREFIX=$HOME/isadist
28539
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    41
45908
143d2514347f enforce short hostname on all platforms (especially macbroy2);
wenzelm
parents: 45253
diff changeset
    42
HOSTNAME="$(hostname -s)"
143d2514347f enforce short hostname on all platforms (especially macbroy2);
wenzelm
parents: 45253
diff changeset
    43
28539
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    44
# this function avoids NFS inconsistencies with multiple writers by
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    45
# sshing to one central machine and writing locally. There is stil a
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    46
# race condition, but at least it should not corrupt a whole set of entries
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    47
# any more.
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    48
function log()
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    49
{
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    50
  MSG="$1"
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    51
  TIMESTAMP="$(date)"
bdb308737bfd do logging to MASTERLOG centrally (avoid multiple writers over NFS as
kleing
parents: 24782
diff changeset
    52
  echo "[$TIMESTAMP $HOSTNAME $PRG]: $MSG" | ssh $LOGSERVER "cat >> $MASTERLOG"
28567
3caee0cd91d8 change DISTPREFIX to not use yet another filesystem
kleing
parents: 28539
diff changeset
    53
}