Sha256: 3d20239357026b9384409538ce2ec95ae59ad61def770dcb287945517ab26fce
Contents?: true
Size: 725 Bytes
Versions: 7
Compression:
Stored size: 725 Bytes
Contents
namespace :mysql do namespace :logrotate do desc <<-DESC Install logrotated conf for mysql. <dl> <dt>mysql_logrotate_path</dt> <dd>Mysql logrotate path</dd> <dd class="default">Defaults to @"/var/lib/mysql/localhost-slow.log"@</dd> </dl> "Source":#{link_to_source(__FILE__)} DESC task :install do fetch_or_default(:mysql_logrotate_path, "/var/lib/mysql/localhost-slow.log") set :logrotate_name, "mysql" set :logrotate_log_path, mysql_logrotate_path set :logrotate_options, [ { :rotate => 7, :size => "10M" }, :daily, :missingok, :notifempty, :copytruncate ] logrotated.install_conf end end end
Version data entries
7 entries across 7 versions & 2 rubygems