Skip to main content

User cron jobs not being logged

Comments

3 comments

  • cPanelMichael
    Hello, I created a test cron job that runs every minute under a cPanel account with a simple "php -v" command:
    # cat /var/spool/cron/example01 SHELL="/bin/bash" * * * * * php -v
    Upon monitoring /var/log/cron, I see the correct log entry is populated:
    Jun 21 08:40:01 hostname CROND[3391]: (example01) CMD (php -v)
    Can you verify that taking the same steps results in no entry to the /var/log/cron log file on your system? If so, does restarting the crond service via "service crond restart" make a difference? Thank you.
    0
  • Axitech
    Hello, I created a test cron job that runs every minute under a cPanel account with a simple "php -v" command:
    # cat /var/spool/cron/example01 SHELL="/bin/bash" * * * * * php -v
    Upon monitoring /var/log/cron, I see the correct log entry is populated:
    Jun 21 08:40:01 hostname CROND[3391]: (example01) CMD (php -v)
    Can you verify that taking the same steps results in no entry to the /var/log/cron log file on your system? If so, does restarting the crond service via "service crond restart" make a difference? Thank you.

    Thank you for your reply. I have added php -v to run every minute on this account, after waiting a few minutes, there are no entries for that account in cron log aside from the list, edit and reload. It does send an email to the correct address, so that part works. Restarting the service does not result in a change unfortunately. I also tested it on some other users and the same problem occurs.
    0
  • cPanelMichael
    Hello, Does this system use CageFS with CloudLinux? If not, feel free to open a support ticket using the link in my signature so we can take a closer look. Thank you.
    0

Please sign in to leave a comment.