# HG changeset patch # User Michael Schloh von Bennewitz # Date 1364839968 -7200 # Node ID fd2bc92f4dee6422e30a90eb5faf8437ed792fa3 # Parent 5be956b2db7441357c7d583e71b6ce07cb633bf8 Correct run command stop logic and indicate installation success. diff -r 5be956b2db74 -r fd2bc92f4dee chiliproj/chiliproj.spec --- a/chiliproj/chiliproj.spec Mon Apr 01 19:50:38 2013 +0200 +++ b/chiliproj/chiliproj.spec Mon Apr 01 20:12:48 2013 +0200 @@ -362,6 +362,7 @@ $RPM_INSTALL_PREFIX/lib/chiliproj/db/* \ $RPM_INSTALL_PREFIX/lib/chiliproj/db/*/* ) || exit $? + echo 'ChiliProject installation done.' fi # after upgrade, restart service [ $1 -eq 2 ] || exit 0 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