Skip to content

Instantly share code, notes, and snippets.

@killercup

killercup/newsyslog.conf

Last active Sep 30, 2019
Embed
What would you like to do?
FreeBSD logrotate via /etc/newsyslog.conf
/var/log/nginx-access.log 644 7 1024 * JC /var/run/nginx.pid 30
/var/log/nginx-error.log 644 7 1024 * JC /var/run/nginx.pid 30
/home/app/episodefever/shared/log/unicorn.stdout.log app:app 666 7 1024 * JC
/home/app/episodefever/shared/log/unicorn.stderr.log app:app 666 7 1024 * JC
/home/app/episodefever/shared/log/newrelic_agent.log app:app 666 7 1024 * JC
/home/app/episodefever/shared/log/production.log app:app 666 7 1024 * JC /usr/home/app/episodefever/shared/pids/unicorn.pid 30
/home/app/episodefever/shared/log/resque-pool.stdout.log app:app 666 7 1024 * JC /usr/home/app/episodefever/shared/pids/resque-pool.pid 30
/home/app/episodefever/shared/log/resque-pool.stderr.log 666 7 1024 * JC /usr/home/app/episodefever/shared/pids/resque-scheduler.pid 30
@dlangille

This comment has been minimized.

Copy link

@dlangille dlangille commented Apr 23, 2014

Also useful is the G option, for globs:

/var/log/nginx-*.log 640 7 * $D0 GB /var/run/nginx.pid 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.