Ignore:
Timestamp:
08/25/06 22:09:49 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r7936 r7944  
    3939webpath=/www/htdocs/datacenter
    4040
    41 processlogpath=$logpath/run/`date +%Y/%m/%d`
    42 processlog=$processlogpath/process`date +%F`.log
     41runlogpath=$logpath/run/`date +%Y/%m/%d`
     42makedir $runlogpath
     43processlog=$runlogpath/process`date +%F`.log
    4344
    4445datetime=`date +%F-%H-%M-%S`
     
    7677# setup for jobmanager
    7778#
     79#log files (can't be defined in script itself, as script can run longer
     80#than one day
     81jmerrorlog=$runlogpath/jobmanager-error`date +%F`.log
     82jmscriptlog=$runlogpath/jobmanager`date +%F`.log
    7883steps=$mars/steps.rc
    7984# resetting values
     
    120125   rm -v $lockfile
    121126   date
     127   printprocesslog "INFO finished $program"
    122128   exit
    123129}
     
    234240               ;;
    235241          *)   echo "error -> exit"
    236                exit
     242               printprocesslog "ERROR function evalstatus got wrong variable"
     243               finish
    237244               ;;
    238245   esac
     
    304311   if ! process=`mysql -s -u $us --password=$pw --host=hercules $db -e " $query "`
    305312   then
    306       echo "ERROR could not query process from db -> exit"
     313      echo "ERROR could not query processes from db -> exit"
     314      printprocesslog "ERROR could not query processes from db (program: $program, function getdolist)"
    307315      finish
    308316   fi
     
    318326      then
    319327         echo "$todofile exists already"
     328         printprocesslog "WARN $todofile exists already (program: $program, function getdolist)"
    320329         finish
    321330      fi
     
    349358   then
    350359      echo "ERROR could not query process from db -> exit"
     360      printprocesslog "ERROR could not query process from db (program: $program, function gettodo)"
    351361      finish
    352362   fi
     
    384394   then
    385395      echo "ERROR could not query number of todo proceses from db -> continue"
     396      printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)"
    386397      cont
    387398   fi
     
    400411   then
    401412      echo "YOU CAN'T RESET $column for $var2!!!"
     413      printprocesslog "ERROR you can't reset $column for $var2"
    402414      finish
    403415   fi
     
    416428   then
    417429      echo "ERROR could not insert status into db -> exit"
    418       finish
    419    fi
    420 
    421 }
     430      printprocesslog "ERROR could not set status in db (program: $program, function setstatus)"
     431      finish
     432   fi
     433
     434}
Note: See TracChangeset for help on using the changeset viewer.