Created
December 1, 2014 09:57
-
-
Save ijonas/263eaf67cdb93ed94767 to your computer and use it in GitHub Desktop.
Quick & dirty Ruby script to generate a whole bunch of logrotate conf files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# license: MIT | |
# example usage: ./logrotateconf $PWD/newrelic_agent.log > newrelic_agent | |
conf = <<-eos | |
{ | |
rotate 14 | |
daily | |
missingok | |
create 640 ubuntu ubuntu | |
notifempty | |
compress | |
delaycompress | |
} | |
eos | |
puts ARGV.first + conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment