Skip to main content
deleted 25 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 238

Ok I gave up trying to fix this. Cron to the rescue.

sudo crontab -e

Then add the following line to the super user's crontab

# Logrotate they said...
3 6 * * *               /usr/sbin/logrotate -f /etc/logrotate.d/derp &> /dev/null

The -f flag forces logrotate to rotate the logs. The file located at /etc/logrotate.d/derp is the corresponding logrotate configuration for my application.

Its ugly, but it was the only way I could fix this bug. Hope this helps someone.

Ok I gave up trying to fix this. Cron to the rescue.

sudo crontab -e

Then add the following line to the super user's crontab

# Logrotate they said...
3 6 * * *               /usr/sbin/logrotate -f /etc/logrotate.d/derp &> /dev/null

The -f flag forces logrotate to rotate the logs. The file located at /etc/logrotate.d/derp is the corresponding logrotate configuration for my application.

Its ugly, but it was the only way I could fix this bug. Hope this helps someone.

Ok I gave up trying to fix this. Cron to the rescue.

sudo crontab -e

Then add the following line to the super user's crontab

# Logrotate they said...
3 6 * * *               /usr/sbin/logrotate -f /etc/logrotate.d/derp &> /dev/null

The -f flag forces logrotate to rotate the logs. The file located at /etc/logrotate.d/derp is the corresponding logrotate configuration for my application.

Its ugly, but it was the only way I could fix this bug.

Forgot I used another example name
Source Link
111---
  • 4.7k
  • 3
  • 32
  • 55

Ok I gave up trying to fix this. Cron to the rescue.

sudo crontab -e

Then add the following line to the super user's crontab

# Logrotate they said...
3 6 * * *               /usr/sbin/logrotate -f /etc/logrotate.d/fooderp &> /dev/null

The -f flag forces logrotate to rotate the logs. The file located at /etc/logrotate.d/fooderp is the corresponding logrotate configuration for my application.

Its ugly, but it was the only way I could fix this bug. Hope this helps someone.

Ok I gave up trying to fix this. Cron to the rescue.

sudo crontab -e

Then add the following line to the super user's crontab

# Logrotate they said...
3 6 * * *               /usr/sbin/logrotate -f /etc/logrotate.d/foo &> /dev/null

The -f flag forces logrotate to rotate the logs. The file located at /etc/logrotate.d/foo is the corresponding logrotate configuration for my application.

Its ugly, but it was the only way I could fix this bug. Hope this helps someone.

Ok I gave up trying to fix this. Cron to the rescue.

sudo crontab -e

Then add the following line to the super user's crontab

# Logrotate they said...
3 6 * * *               /usr/sbin/logrotate -f /etc/logrotate.d/derp &> /dev/null

The -f flag forces logrotate to rotate the logs. The file located at /etc/logrotate.d/derp is the corresponding logrotate configuration for my application.

Its ugly, but it was the only way I could fix this bug. Hope this helps someone.

Source Link
111---
  • 4.7k
  • 3
  • 32
  • 55

Ok I gave up trying to fix this. Cron to the rescue.

sudo crontab -e

Then add the following line to the super user's crontab

# Logrotate they said...
3 6 * * *               /usr/sbin/logrotate -f /etc/logrotate.d/foo &> /dev/null

The -f flag forces logrotate to rotate the logs. The file located at /etc/logrotate.d/foo is the corresponding logrotate configuration for my application.

Its ugly, but it was the only way I could fix this bug. Hope this helps someone.