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
fcron systab not loaded #25072
Comments
Hmm... I seem to be hitting this very same problem with fcron on services.fcron = {
enable = true;
systab =
''
1 /bin/sh -c echo
'';
}; gives me the following logs:
Would anyone have a pointer as to what could be going wrong? I've checked and the |
I also noticed fcrontab needs itself in PATH: e34e28e the following works for me:
|
I was hitting this issue due to the nix store being auto-optimized and thus using hard links for the systab: fcron refuses to open the file if it has a hard link, apparently for security reasons. (apart from the syntax error that arose during minification of the example, thanks for the feedback!) See #30261 for a possible fix :) |
Issue description
When using fcron, the systab gets generated from the system cron commands just like any of the other crons but the logic that updates that in fcron appears to have stopped working in 17.03. Looking in the module I see a commented out line that attempts to do it but when I run it by hand I receive an error about the file not being a regular file.
Steps to reproduce
services.fcron.enable; services.cron.disable;
services.cron.systemCronJobs = ...;
fcrontab -l -u systab
Copying the file to another location via cat does make this work correctly so I'm not sure what the solution might be.
Technical details
The text was updated successfully, but these errors were encountered: