Mon, 01 Apr 2013 20:12:48 +0200
Correct run command stop logic and indicate installation success.
chiliproj/chiliproj.spec | file | annotate | diff | comparison | revisions | |
chiliproj/rc.chiliproj | file | annotate | diff | comparison | revisions |
1.1 --- a/chiliproj/chiliproj.spec Mon Apr 01 19:50:38 2013 +0200 1.2 +++ b/chiliproj/chiliproj.spec Mon Apr 01 20:12:48 2013 +0200 1.3 @@ -362,6 +362,7 @@ 1.4 $RPM_INSTALL_PREFIX/lib/chiliproj/db/* \ 1.5 $RPM_INSTALL_PREFIX/lib/chiliproj/db/*/* 1.6 ) || exit $? 1.7 + echo 'ChiliProject installation done.' 1.8 fi 1.9 # after upgrade, restart service 1.10 [ $1 -eq 2 ] || exit 0
2.1 --- a/chiliproj/rc.chiliproj Mon Apr 01 19:50:38 2013 +0200 2.2 +++ b/chiliproj/rc.chiliproj Mon Apr 01 20:12:48 2013 +0200 2.3 @@ -59,9 +59,11 @@ 2.4 %stop -u @l_susr@ 2.5 rcService chiliproj enable yes || exit 0 2.6 rcService chiliproj active no && exit 0 2.7 - cd @l_chilipath@ && \ 2.8 - @l_gempath@/bin/bundle exec thin \ 2.9 - -P ${chili_pidpath}/thind.pid stop 2.10 + cd @l_chilipath@ 2.11 + for thepid in ${chili_pidpath}/thind.[0-9][0-9]*.pid; do 2.12 + cd @l_prefix@/lib/chiliproj 2.13 + @l_gempath@/bin/bundle exec thin -P $thepid stop 2.14 + done 2.15 2.16 %restart -u @l_susr@ 2.17 rcService chiliproj enable yes || exit 0