bitnami - /etc/crontab not being run, as well as /etc/cron.daily and so forth -
this driving me crazy.
it seems none of cron tasks in /etc/crontab or /etc/cron.daily run? i'm not sure how investigate this.
i've done crontab -e
root, , added * * * * * /bin/echo "cron works" >> /tmp/abcxyzcrontest
works (/tmp/abcxyzcrontest
) gets populated.
what possible reasons these not being run?
the contents of /etc/crontab is:
# /etc/crontab: system-wide crontab # unlike other crontab don't have run `crontab' # command install new version when edit file # , files in /etc/cron.d. these files have username fields, # none of other crontabs do. shell=/bin/sh path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command * * * * * /bin/echo "cron works" >> /tmp/crontestabcxyz123first 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) # 09 * * * * bitnami cd /opt/bitnami/stats && ./agent.bin --run -d * * * * * /bin/echo "cron works" >> /tmp/crontestabcxyzfrometccrontabsecond
update
i've modified:
* * * * * /bin/echo "cron works" >> /tmp/crontestabcxyz123first
to include user so:
* * * * * root /bin/echo "cron works" >> /tmp/crontestabcxyz123first
and seems work (/tmp/crontestabcxyz123first gets populated)...
this still not explain why hourly cron instance not run...
while manually executing cd / && run-parts --report /etc/cron.hourly
root works?
Comments
Post a Comment