From 1a888b4c875979178abcb5dbb7f85f1bf84363bf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 12 Dec 2014 18:15:06 +0100 Subject: [PATCH] fix lockfile handling by the cron --- process/cron/run-eressea | 3 +++ 1 file changed, 3 insertions(+) diff --git a/process/cron/run-eressea b/process/cron/run-eressea index dd995e0ce..4186d3872 100755 --- a/process/cron/run-eressea +++ b/process/cron/run-eressea @@ -13,12 +13,15 @@ if [ -d $REPORTS ]; then fi mkdir $REPORTS $BIN/backup-eressea $GAME + +cd $ERESSEA/game-$GAME if [ -d test ]; then touch test/execute.lock fi rm -f execute.lock $BIN/run-turn $GAME touch execute.lock + if [ ! -s $ERESSEA/game-$GAME/orders.$TURN ]; then echo "server did not create orders for turn $TURN in game $GAME" exit 2