Skip to content

Conversation

@ahoying
Copy link
Contributor

@ahoying ahoying commented Dec 16, 2014

Without this change, alertbot.pl never runs. Cron does work once it is added to the supervisor configuration, but I do get this error in cron.stderr.log: "/usr/sbin/cron: can't lock /var/run/crond.pid, otherpid may be 20: Resource temporarily unavailable" I'm not sure if it is a docker issue, or something with the cron configuration. It doesn't seem to impact anything.

sandywater added a commit that referenced this pull request Dec 17, 2014
Cron not running in docker, added to supervisord config
@sandywater sandywater merged commit b7ae137 into sandialabs:master Dec 17, 2014
@sandywater
Copy link
Contributor

@ahoying very nice. That would explain why the scheduled backups weren't working 😉

@sandywater
Copy link
Contributor

@ahoying I think we are going to need to run cron in non-daemon mode: http://stackoverflow.com/a/20548563

This might be why you were seeing those errors

@ahoying
Copy link
Contributor Author

ahoying commented Dec 17, 2014

I changed the command to /usr/sbin/cron -f and that fixed the issue, and cron still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants