diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2010-11-11 11:34:47 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2010-11-11 11:34:47 +0800 |
commit | 2c4fd0661aa979ed7b7045fec7c47822e8fea8b4 (patch) | |
tree | 2f7903054aba9e4a8e8687a217915dcfb9e8ac1a /www | |
parent | 536f189940ff10668edb59113756cdeffc9fa91f (diff) | |
download | freebsd-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.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 |