enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #10479
[Bug 2072480] [NEW] apache2 with broken logrotate config (incl Fix)
Public bug reported:
Apache2 in Package:
ii apache2 2.4.58-1ubuntu8.1 amd64 Apache HTTP Server
contains a broken logrotate Config.
Output of Systemd -> Logrotate:
```
Jul 02 00:00:00 mysys systemd[1]: Starting logrotate.service - Rotate log files...
Jul 02 00:00:00 mysys logrotate[1043990]: logrotate_script: 2: rotate: not found
Jul 02 00:00:00 mysys logrotate[1043990]: logrotate_script: 4: Syntax error: "fi" unexpected
Jul 02 00:00:00 mysys logrotate[1043953]: error: error running shared prerotate script for '/var/log/apache2/*.log '
Jul 02 00:00:00 mysys systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Jul 02 00:00:00 mysys systemd[1]: logrotate.service: Failed with result 'exit-code'.
Jul 02 00:00:00 mysys systemd[1]: Failed to start logrotate.service - Rotate log files.
```
Broken part:
```
...
sharedscripts
prerotate
rotate 356
run-parts /etc/logrotate.d/httpd-prerotate
fi
endscript
```
I Think the following Line is missung above the run-parts
```
if [ -d /etc/logrotate.d/httpd-prerotate ]; then
```
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/2072480
Title:
apache2 with broken logrotate config (incl Fix)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2072480/+subscriptions
Follow ups