forked from github/server
further fixes to the crontab system
This commit is contained in:
parent
741cb30e90
commit
742f464ee5
|
@ -4,14 +4,15 @@ PATH=$HOME/bin:/opt/bin:/usr/local/bin:/usr/bin:/bin
|
||||||
ERESSEA=/home/eressea/eressea
|
ERESSEA=/home/eressea/eressea
|
||||||
ATLANTIS=/home/eressea/atlantis
|
ATLANTIS=/home/eressea/atlantis
|
||||||
ENABLED=no
|
ENABLED=no
|
||||||
|
PREVIEW=no
|
||||||
CONFIRM=yes
|
CONFIRM=yes
|
||||||
|
|
||||||
# m h dom mon dow command
|
# m h dom mon dow command
|
||||||
00 00 * * * $HOME/bin/fetchmail.cron
|
00 00 * * * $HOME/bin/fetchmail.cron
|
||||||
00 22 * * * $HOME/bin/backup-db.sh
|
00 22 * * * $HOME/bin/backup-db.sh
|
||||||
|
|
||||||
*/2 * * * * [ "$CONFIRM" = "yes" ] || $ERESSEA/eressea/server/bin/orders.cron 2 3 4
|
|
||||||
15 21 * * Sat [ "$ENABLED" = "yes" ] || $ERESSEA/server/bin/run-eressea.cron 3
|
15 21 * * Sat [ "$ENABLED" = "yes" ] || $ERESSEA/server/bin/run-eressea.cron 3
|
||||||
25 21 * * Sat [ "$ENABLED" = "yes" ] || $ERESSEA/server/bin/run-eressea.cron 4
|
25 21 * * Sat [ "$ENABLED" = "yes" ] || $ERESSEA/server/bin/run-eressea.cron 4
|
||||||
35 21 * * Sat [ "$ENABLED" = "yes" ] || $ERESSEA/server/bin/run-eressea.cron 2
|
35 21 * * Sat [ "$ENABLED" = "yes" ] || $ERESSEA/server/bin/run-eressea.cron 2
|
||||||
39 08 * * Sun [ "$ENABLED" = "yes" ] || $ERESSEA/server/bin/previews.cron
|
39 08 * * Sun [ "$PREVIEW" = "yes" ] || $ERESSEA/server/bin/previews.cron
|
||||||
|
*/5 * * * * [ "$CONFIRM" = "yes" ] || $ERESSEA/server/bin/orders.cron 2 3 4
|
||||||
|
|
|
@ -39,7 +39,7 @@ if [ ! -s $ERESSEA/game-$GAME/data/$TURN.dat ]; then
|
||||||
fi
|
fi
|
||||||
echo "sending reports for game $GAME, turn $TURN"
|
echo "sending reports for game $GAME, turn $TURN"
|
||||||
$BIN/compress.sh $GAME $TURN
|
$BIN/compress.sh $GAME $TURN
|
||||||
$BIN/sendreports.sh $GAME
|
# $BIN/sendreports.sh $GAME
|
||||||
|
# [ $GAME -lt 4 ] && $BIN/send-summary $GAME
|
||||||
$BIN/backup-eressea $GAME $TURN
|
$BIN/backup-eressea $GAME $TURN
|
||||||
[ $GAME -lt 4 ] && $BIN/send-summary $GAME
|
|
||||||
rm -f test/execute.lock
|
rm -f test/execute.lock
|
||||||
|
|
|
@ -21,4 +21,8 @@ make install
|
||||||
|
|
||||||
[ -d $DEST/bin ] || mkdir -p $DEST/bin
|
[ -d $DEST/bin ] || mkdir -p $DEST/bin
|
||||||
install -v $ROOT/process/cron/*.cron $DEST/bin/
|
install -v $ROOT/process/cron/*.cron $DEST/bin/
|
||||||
|
programs="create-orders backup-eressea run-turn"
|
||||||
|
for prg in ${programs} ; do
|
||||||
|
install -v $ROOT/process/$prg $DEST/bin/
|
||||||
|
done
|
||||||
crontab $ROOT/process/cron/crontab
|
crontab $ROOT/process/cron/crontab
|
||||||
|
|
Loading…
Reference in New Issue