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

Load crontab files from directory #130

Open
txigreman opened this issue Jun 12, 2023 · 2 comments
Open

Load crontab files from directory #130

txigreman opened this issue Jun 12, 2023 · 2 comments
Labels

Comments

@txigreman
Copy link

Does supercronic support to load all crontabs files in a specific directory? Something like crond service does with /etc/cron.d/.

As a workaround I could add an entrypoint an merge all of them in a single file, but I would love to simply run supercronic /path/to/cron/files/, or similar.

@UserNotFound
Copy link
Member

Supercronic can only read from a single file. You could accomplish in an ENTRYPOINT or CMD with only a small effort: cat /path/to/cron/files/* > /tmp/all.crons && exec supercronic /tmp/all.crons

@thekashifmalik
Copy link

I have this use case now. I will try the work-around given but I think I may run into permissions issues. Seems like it would be a pretty useful feature regardless; loading crontabs from a directory or loading multiple crontabs in general.

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

No branches or pull requests

4 participants