Start tuning up daemontools

This commit is contained in:
Ian Gulliver
2016-03-30 15:50:01 -07:00
parent 3509652ef7
commit a4efdb99f0
2 changed files with 19 additions and 0 deletions

18
client/run Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
set -ex
exec 2>&1
# Mitigate crash looping
sleep 60
IMAGES=/isodevice/iconograph
mkdir -p "${IMAGES}"
FLAGS=$(cat flags)
while :; do
./fetcher.py --image-dir="${IMAGES}" ${FLAGS}
sleep 3600
done