Sha256: 8ef58c70283d856013f0489efe306576a7b2e6a24a773d1d00133dedb14bea65

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

<%
  @path = "/etc/logrotate.d/unicorn"
  @no_backup = true

  deploy_to = "/mnt/#{rubber_env.app_name}-#{RUBBER_ENV}"
-%>
<%= deploy_to %>/shared/log/unicorn*.log {
        daily
        missingok
        dateext
        create 640 <%= rubber_env.app_user %> <%= rubber_env.app_user %>
        sharedscripts
        postrotate
                [ ! -f <%= deploy_to %>/shared/pids/unicorn.pid ] || kill -USR1 `cat <%= deploy_to %>/shared/pids/unicorn.pid`
        endscript
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
axtro-rubber-1.2.3 generators/vulcanize/templates/unicorn/config/rubber/role/unicorn/logrotate-unicorn
axtro-rubber-1.2.2 generators/vulcanize/templates/unicorn/config/rubber/role/unicorn/logrotate-unicorn
axtro-rubber-1.2.1 generators/vulcanize/templates/unicorn/config/rubber/role/unicorn/logrotate-unicorn