From 2d571067e8257346adc6d5a32e58d94b22b7cce9 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 30 Aug 2012 15:16:34 -0300 Subject: [PATCH] Stop solr *after* the application server stopped --- script/production | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/production b/script/production index 655013e..a37d0d4 100755 --- a/script/production +++ b/script/production @@ -34,8 +34,6 @@ do_start() { } do_stop() { - rake -s solr:stop - # During Debian upgrades, it is possible that rails is not available (e.g. # Lenny -> Squeeze), so the programs below might fail. If they do, we fall # back to stopping the daemons by manually reading their PID files, killing @@ -46,6 +44,8 @@ do_stop() { environments_loop stop || stop_via_pid_file tmp/pids/delayed_job.pid tmp/pids/delayed_job.*.pid tmp/pids/feed-updater.*.pid + + rake -s solr:stop || stop_via_pid_file tmp/pids/solr.*.pid } stop_via_pid_file() { -- libgit2 0.21.2