Trying to run a cron job in a docker container.
HAve a supervisord properly configured
(I see cron -f
in the ps -ef
and if I kill it it respawns)
crontab file (for testing):
* * * * * echo hi >> /root/test
I tried putting it in /etc/cron.d/crontab
/etc/crontab
and in /var/spool/cron/crontabs/crontab
Nothing is working - I'm not getting anything in /root/test
Any ideas?
You may want to check your crontab syntax; crontab files in places like
/etc/crontab
require an extra username field, for example:This is documented (not very prominently) in
crontab(5)
: