]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dev/templates/default/logrotate.apis.erb
Configure the OAuth 2 application ID for the web site
[chef.git] / cookbooks / dev / templates / default / logrotate.apis.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <%= @log_directory %>/*.log {
4   daily
5   missingok
6   rotate 7
7   compress
8   delaycompress
9   notifempty
10   create 0660 apis apis
11   sharedscripts
12   postrotate
13     PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app --ignore-app-not-running <%= @rails_directory %> > /dev/null
14     /bin/systemctl try-reload-or-restart cgimap@<%= @name %>
15   endscript                                                                     
16 }