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

Allow specifying SPOOL_DIR path at runtime #129

Open
yakatz opened this issue Dec 21, 2022 · 1 comment
Open

Allow specifying SPOOL_DIR path at runtime #129

yakatz opened this issue Dec 21, 2022 · 1 comment

Comments

@yakatz
Copy link

yakatz commented Dec 21, 2022

We would like to have two instances of cronie running, one for just the local machine and a separate one using an nfs mounted directory. A prerequisite for this would be the ability to change the SPOOL_DIR setting at runtime instead of only at compile time.

I understand this would get complicated for tools like crontab to edit the files - I would say at a minimum to leave that for the future and people who really want to do this can manage the files in the secondary spool directory some other way.

@t8m
Copy link
Member

t8m commented Dec 21, 2022

The simplest way would be to override the SPOOL_DIR via an environment variable. But that would work only for crond as crontab is setuid root.

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

No branches or pull requests

2 participants