chiliproj/rc.chiliproj

changeset 766
fd2bc92f4dee
parent 765
5be956b2db74
child 767
3ee660c5bc4f
     1.1 --- a/chiliproj/rc.chiliproj	Mon Apr 01 19:50:38 2013 +0200
     1.2 +++ b/chiliproj/rc.chiliproj	Mon Apr 01 20:12:48 2013 +0200
     1.3 @@ -59,9 +59,11 @@
     1.4  %stop -u @l_susr@
     1.5      rcService chiliproj enable yes || exit 0
     1.6      rcService chiliproj active no  && exit 0
     1.7 -    cd @l_chilipath@ && \
     1.8 -        @l_gempath@/bin/bundle exec thin \
     1.9 -        -P ${chili_pidpath}/thind.pid stop
    1.10 +    cd @l_chilipath@
    1.11 +    for thepid in ${chili_pidpath}/thind.[0-9][0-9]*.pid; do
    1.12 +        cd @l_prefix@/lib/chiliproj
    1.13 +        @l_gempath@/bin/bundle exec thin -P $thepid stop
    1.14 +    done
    1.15  
    1.16  %restart -u @l_susr@
    1.17      rcService chiliproj enable yes || exit 0

mercurial