doudi8231 2012-05-29 18:13
浏览 53
已采纳

如何判断moodle cron是否正常工作?

I've just sended a messege to the server admin asking if he can set the cronjobs on the server and he asked me to tell him if everything is working right. How can I test whether the cronjobs are working or not?

  • 写回答

5条回答 默认 最新

  • duanpu2272 2014-09-22 16:04
    关注

    You need to output Moodle cron run to the logfile, e.g. your cron.d record may look like:

    * * * * * www-data /usr/bin/php /var/www/moodle/admin/cli/cron.php >> /var/log/vle/moodle-cron.log 2>&1
    

    Then, the content of /var/log/vle/moodle-cron.log will tell you immediately if cron running fine. If you want to go further, you can even monitor the file for the last update using some monoring tools and get alerts if cron has stopped.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 qgcomp混合物线性模型分析的代码出现错误:Model aliasing occurred
  • ¥100 已有python代码,要求做成可执行程序,程序设计内容不多
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助
  • ¥15 STM32控制MAX7219问题求解答