diff -r 5be956b2db74 -r fd2bc92f4dee chiliproj/rc.chiliproj --- a/chiliproj/rc.chiliproj Mon Apr 01 19:50:38 2013 +0200 +++ b/chiliproj/rc.chiliproj Mon Apr 01 20:12:48 2013 +0200 @@ -59,9 +59,11 @@ %stop -u @l_susr@ rcService chiliproj enable yes || exit 0 rcService chiliproj active no && exit 0 - cd @l_chilipath@ && \ - @l_gempath@/bin/bundle exec thin \ - -P ${chili_pidpath}/thind.pid stop + cd @l_chilipath@ + for thepid in ${chili_pidpath}/thind.[0-9][0-9]*.pid; do + cd @l_prefix@/lib/chiliproj + @l_gempath@/bin/bundle exec thin -P $thepid stop + done %restart -u @l_susr@ rcService chiliproj enable yes || exit 0