Apache2 每天早上都会自动重新加载,然后失败

Apache2 每天早上都会自动重新加载,然后失败

Debian GNU/Linux 8(jessie),Linux 版本 3.16.0-4-amd64 Apache 服务器版本:Apache/2.4.10(Debian)

我服务器上的 Apache2 每天早上 (06:25) 都会自动重新加载。我从其他帖子中看到,这可能是由 logrotate 引起的,但我不确定如何/在哪里验证这一点。我希望某处有一个 cron 作业每天在 06:25 启动,其中包含用于停止和运行 Apache2 服务的命令。但我不知道该配置文件在哪里,知道就好了。

但这不是主要问题。主要问题是我的服务器在这次重新加载后开始出现故障。今天早上,sysctl 日志中出现了以下消息:

Jul 24 06:25:02 ip-172-30-0-106 apache2[28370]: Reloading web server: apache2 failed!
Jul 24 06:25:02 ip-172-30-0-106 apache2[28370]: Apache2 is not running ... (warning).
Jul 24 06:25:02 ip-172-30-0-106 systemd[1]: apache2.service: control process exited, code=exited status=1

但是,Apache2 错误日志中当时没有任何内容。

棘手的是,如果我运行$ service apache2 restart,它会重新启动,没有任何错误。所以我无法强制系统显示错误所在。

我现在想知道如何调查这种情况。我会看看第二天早上自动重新加载是否也会失败,然后更新这篇文章。

相关内容