小编DEf*_*ion的帖子

找不到我的 cron 任务报告命令

这是我的 crontab 文件的内容:

0 0,6,12,18 * * * cd /var/www/app/current && backup perform --trigger db_backup --config_file config/backup.rb --data-path db --log-path log --tmp-path tmp >> /var/www/app/current/log/cron.log 2>&1

0 3 * * * cd /var/www/app/current && RAILS_ENV=production bundle exec rake runs:populate --silent >> /var/www/app/current/log/cron.log 2>&1

59 23 * * * cd /var/www/app/current && RAILS_ENV=production bundle exec rake runs:log --silent >> /var/www/app/current/log/cron.log 2>&1
Run Code Online (Sandbox Code Playgroud)

如果我以 crontab 的所有者身份手动运行其中任何一个,它们工作正常,但该cron.log文件仅包含:

/bin/sh: bundle: not found
/bin/sh: backup: not found
/bin/sh: bundle: not found
Run Code Online (Sandbox Code Playgroud)

我尝试将每一个都包装在以下(默认情况下,我用来管理我的 cron 文件的 …

ubuntu shell bash cron

8
推荐指数
1
解决办法
5844
查看次数

如何使用 monit 监控乘客

我想设置 monit 来监控乘客,但到目前为止我发现的所有内容基本上都说只是使用 monit 监控您的网站。如果可能的话,我想直接监控乘客,这样我就可以更好地控制它。

monitoring phusion-passenger monit

7
推荐指数
1
解决办法
1803
查看次数

标签 统计

bash ×1

cron ×1

monit ×1

monitoring ×1

phusion-passenger ×1

shell ×1

ubuntu ×1