-
-
Notifications
You must be signed in to change notification settings - Fork 252
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 wont run #827
Comments
you're likely checking the root user's crontab with that command, but the line is getting added to Also, your file needs to be named |
My mistake, the file is named
|
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm also having this issue. I've tried adding it to both edit: never mind, it seems to be working on the 4.6.3 container after deleting the image and redownloading. |
True, I'm also having this problem. I have added DOCKER_MODS=linuxserver/mods:universal-cron to my docker-compose file, I'm using https://docs.linuxserver.io/images/docker-code-server. I then added a test line in /config/crontabs/abc but nothing works. The only way I could get it to work is to use a custom script (as outlined here https://www.linuxserver.io/blog/2019-09-14-customizing-our-containers) by adding a volume line like this:
and then in my init/cron.sh file write this: #!/bin/bash I hope this helps! |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello, after adding this mod to code-server image and adding the line
*/5 * * * * /bin/echo test >> /config/tmp.txt
toconfig/crontabs/abs
and restarting the container, I would expect the line to appear in file after runningcrontab -e
in docker container, but it is not present. Furthermore no test is appended in/config/tmp.txt
so the cron job did not run and other commands in abc file wont run either.The text was updated successfully, but these errors were encountered: