forked from kamba4/sunders
Adds health checks to web and data_handler container; restarting on failure #24
1 changed files with 9 additions and 1 deletions
chore: Immediately starts update_camera on container startup
commit
f94080f45f
|
|
@ -20,7 +20,15 @@ php /opt/init_db.php
|
||||||
echo "Prescripts done"
|
echo "Prescripts done"
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
### Run cmd
|
### Run script once immediately
|
||||||
|
####################################################################################################
|
||||||
|
|
||||||
|
echo "Running update once initially..."
|
||||||
|
sh /opt/update_camera.sh >> /var/log/update_camera_$(date +\%Y\%m\%d\%H\%M\%S).log 2>&1
|
||||||
|
echo "Initial update done"
|
||||||
|
|
||||||
|
####################################################################################################
|
||||||
|
### Run cron to schedule periodic task
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
# see: https://github.com/dubiousjim/dcron/issues/13
|
# see: https://github.com/dubiousjim/dcron/issues/13
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue