aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-11-11 11:34:47 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-11-11 11:34:47 +0800
commit2c4fd0661aa979ed7b7045fec7c47822e8fea8b4 (patch)
tree2f7903054aba9e4a8e8687a217915dcfb9e8ac1a /www
parent536f189940ff10668edb59113756cdeffc9fa91f (diff)
downloadfreebsd-ports-gnome-2c4fd0661aa979ed7b7045fec7c47822e8fea8b4.tar.gz
freebsd-ports-gnome-2c4fd0661aa979ed7b7045fec7c47822e8fea8b4.tar.zst
freebsd-ports-gnome-2c4fd0661aa979ed7b7045fec7c47822e8fea8b4.zip
- Correctly stop both mongrel, and the builder instances which may be
several different pids. PR: ports/151840 Submitted by: Toomas Aas <toomas@tarkvarastuudio.ee> Sponsored by: RideCharge Inc. / TaxiMagic
Diffstat (limited to 'www')
-rw-r--r--www/ruby-cruisecontrolrb/files/cruisecontrolrb.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in
index af6046e6e8c4..e6a4658c53f0 100644
--- a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in
+++ b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in
@@ -24,11 +24,17 @@ start_cmd="cruisecontrolrb_start"
stop_cmd="cruisecontrolrb_stop"
cruisecontrolrb_start() {
- set -x
${command} start ${command_args}
}
cruisecontrolrb_stop() {
kill $(cat $pidfile)
+ ## also stop the builders
+ cd %%PREFIX%%/www/${name}/tmp/pids/builders/
+ for builder in $(ls); do
+ kill $(cat $builder)
+ rm ${builder}
+ }
+ done
}
load_rc_config $name