Skip to content

Commit

Permalink
Fix cron startup
Browse files Browse the repository at this point in the history
  • Loading branch information
pyldin601 committed Jul 17, 2017
1 parent f01ab37 commit 9003d05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ RUN apt-get update && \
echo; \
echo "[program:cron]"; \
echo "command=cron -f"; \
echo "stdout_logfile=/dev/stdout"; \
echo "stdout_logfile_maxbytes=0"; \
echo "stderr_logfile=/dev/stderr"; \
echo "stderr_logfile_maxbytes=0"; \
} | tee -a /etc/supervisor/supervisord.conf

WORKDIR /usr/app/
Expand Down
6 changes: 2 additions & 4 deletions cronfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 5 * * * curl -X POST http://guest:please@localhost:8080/cron/cleanFileSystem
* * * * * curl -X POST http://guest:please@localhost:8080/cron/generatePeaks
0 5 * * * root curl -X POST http://guest:please@localhost:8080/cron/cleanFileSystem
* * * * * root curl -X POST http://guest:please@localhost:8080/cron/generatePeaks

0 comments on commit 9003d05

Please sign in to comment.