Skip to content

Commit

Permalink
Start cron on container startup. Fixes spujadas/elk-docker#60
Browse files Browse the repository at this point in the history
  • Loading branch information
azuredeviil053 committed Aug 6, 2016
1 parent 995ab61 commit 519ab74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ _term() {

trap _term SIGTERM

## Oddly, crond needs to be started while the container is running
# so lets do that now
service cron start


## remove pidfiles in case previous graceful termination failed
# NOTE - This is the reason for the WARNING at the top - it's a bit hackish,
Expand Down

0 comments on commit 519ab74

Please sign in to comment.