aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
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