chiliproj/rc.chiliproj

changeset 766
fd2bc92f4dee
parent 765
5be956b2db74
child 767
3ee660c5bc4f
equal deleted inserted replaced
1:1b43988bbc6e 2:f989546725b9
57 start 57 start
58 58
59 %stop -u @l_susr@ 59 %stop -u @l_susr@
60 rcService chiliproj enable yes || exit 0 60 rcService chiliproj enable yes || exit 0
61 rcService chiliproj active no && exit 0 61 rcService chiliproj active no && exit 0
62 cd @l_chilipath@ && \ 62 cd @l_chilipath@
63 @l_gempath@/bin/bundle exec thin \ 63 for thepid in ${chili_pidpath}/thind.[0-9][0-9]*.pid; do
64 -P ${chili_pidpath}/thind.pid stop 64 cd @l_prefix@/lib/chiliproj
65 @l_gempath@/bin/bundle exec thin -P $thepid stop
66 done
65 67
66 %restart -u @l_susr@ 68 %restart -u @l_susr@
67 rcService chiliproj enable yes || exit 0 69 rcService chiliproj enable yes || exit 0
68 rcService chiliproj active no && exit 0 70 rcService chiliproj active no && exit 0
69 rc chiliproj stop 71 rc chiliproj stop

mercurial