mv $ROOT/sources/taginfo-*.db $ROOT/sources/*/taginfo-*.db $ROOT/data
mv $ROOT/sources/download/* $ROOT/download
-touch $ROOT/taginfo/web/tmp/restart.txt
+passenger-config restart-app $ROOT/taginfo/web
find $ROOT/sources/log -mtime +28 -delete
sharedscripts
postrotate
<% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
- /bin/touch <%= node[:web][:base_directory] %>/rails/tmp/restart.txt
+ /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails
<% end -%>
<% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>
/usr/bin/service gpx-import rotated