Hello, we have a trouble on one of the Ubuntu 16.04 server with certbot apache plugin. If there is a certificate to renew, the certbot successfuly stops apache, successfuly renew the certificate and successfuly starts the apache again. The problem is that afterwards it stops the apache again and leave it stopped. But there is nothing in logs, why.
Here is an example of the apache error log:
[Mon Oct 01 08:35:44.819289 2018] [mpm_prefork:notice] [pid 13437] AH00169: caught SIGTERM, shutting down
[Mon Oct 01 08:35:52.966333 2018] [mpm_prefork:notice] [pid 4574] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Mon Oct 01 08:35:52.966398 2018] [core:notice] [pid 4574] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Oct 01 08:35:53.310150 2018] [mpm_prefork:notice] [pid 4574] AH00169: caught SIGTERM, shutting down
The last line is important - why it is stopped?
The according letsencrypt log is in short:
2018-10-01 08:35:41,171:INFO:certbot.hooks:Running pre-hook command: service apache2 stop
… certificate renewal…
2018-10-01 08:35:52,905:INFO:certbot.hooks:Running post-hook command: service apache2 start
The last line is actually the very last line in the log - there is nothing else. But the apache was stopped a second after.
Certbot version is 0.26.1.
Can someone help please?