This commit is contained in:
12
run-loop.sh
Normal file
12
run-loop.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Run sync.py once immediately, then sleep for one hour between runs.
|
||||
# Using sh for maximum compatibility in slim images.
|
||||
|
||||
set -e
|
||||
|
||||
while true; do
|
||||
echo "Running sync.py at $(date -u)"
|
||||
python sync.py || echo "sync.py exited with non-zero status"
|
||||
echo "Sleeping for 3600 seconds"
|
||||
sleep 3600
|
||||
done
|
||||
Reference in New Issue
Block a user