diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-11-11 03:34:47 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-11-11 03:34:47 +0000 |
commit | 834b807156418a8afc91673d6620bf3fa652ddd5 (patch) | |
tree | 03f765a83515783d7e6df54d6418545a64d81628 /www/ruby-cruisecontrolrb | |
parent | 3a468dc73f2b42454f8de02165bec1337b8d162c (diff) |
Notes
Diffstat (limited to 'www/ruby-cruisecontrolrb')
-rw-r--r-- | www/ruby-cruisecontrolrb/files/cruisecontrolrb.in | 8 |
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 |