docker ubuntu cron -f is not working -
trying run cron job in docker container. have supervisord configured
(i see cron -f in ps -ef , if kill it respawns)
crontab file (for testing):
* * * * * echo hi >> /root/test
i tried putting in /etc/cron.d/crontab /etc/crontab , in /var/spool/cron/crontabs/crontab
nothing working - i'm not getting in /root/test
any ideas?
you may want check crontab syntax; crontab files in places /etc/crontab require username field, example:
* * * * * root echo hi >> /root/test this documented (not prominently) in crontab(5):
jobs in /etc/cron.d/
the jobs in cron.d , /etc/crontab system jobs, used more 1 user, thus, additionally username needed....
Comments
Post a Comment