Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron does not start automatically #160

Open
martin-neumann-gurus opened this issue Mar 29, 2024 · 2 comments
Open

Cron does not start automatically #160

martin-neumann-gurus opened this issue Mar 29, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@martin-neumann-gurus
Copy link

It looks like you have cron included in the image, but it did not start by itself. I could finally activate cron by running
/etc/init.d/cron start

However, it would be nice if that would be resolved already on container start. Could that be included?

@timnolte
Copy link
Member

timnolte commented Mar 29, 2024

Hmm, interesting, so I didn't think I had done anything different with that from the official image. I'll take a look to see what difference there might be. I haven't checked in on the official image repo recently to see what updates might be there that I need to ensure make it into the arm64 image.

I thought this had been working, though to be honest I'm currently using the image on a VPS running Docker and I'm leveraging the VPS host cron to execute jobs within the container, I'm not currently mapping a volume or bind mount for the crontab which would otherwise disappear on restarts. To a degree this is probably why cron is also not started by default.

@timnolte timnolte self-assigned this Mar 29, 2024
@timnolte timnolte added the enhancement New feature or request label Mar 29, 2024
@timnolte
Copy link
Member

timnolte commented Apr 2, 2024

So, I did check and by default a Docker won't run cron, also the official Docker image doesn't have cron starting by default either. Depending on how you are starting up your container you could mount and use your own ENTRYPOINT by using a modified version of the default entry point script.

https://github.com/ndigitals/ols-dockerfiles/blob/develop/template/entrypoint.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants