Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Options #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Global Options #40

wants to merge 2 commits into from

Conversation

rwese
Copy link

@rwese rwese commented Apr 16, 2018

Create logrotate.d files and set global options.

@nickhammond
Copy link
Owner

Hey @rwese, thanks for the PR!

Defaults/globals for logrotate should actually be placed in /etc/logrotate.conf which then includes all of the files in /etc/logrotate.d, I don't want to mix those use cases on a user and introduce a new concept of global options.

Here's some defaults that are being set with logrotate on a fresh install of xenial for instance:

vagrant@ubuntu-xenial:~$ cat /etc/logrotate.conf | grep include -B 10
# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

@rwese
Copy link
Author

rwese commented Apr 24, 2018

True, I was hesitant to override the Global Configuration.

When I get to it I will update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants