#!/bin/sh

shutDown
sleep 5


if [ -r sktHstGeneric.lock ]; then

 echo "File sktHstGeneric.lock exists; cannot start sktHstGeneric"

else

 timestamp=`date +%s`
 nohup sktHstGeneric $@ 1> data/log/Log$timestamp.out_Hst 2> data/log/Log$timestamp.err_Hst &
 echo "Log file used: data/log/Log$timestamp.out_Hst"

fi

sleep 1

if [ -r runner.lock ]; then

 echo "File runner.lock exists; cannot start runner"

else

 timestamp=`date +%s`
 nohup runner $@ 1> data/log/Log$timestamp.out 2> data/log/Log$timestamp.err &
 echo "Log file used: data/log/Log$timestamp.out"

fi
