mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- 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
This commit is contained in:
parent
3a468dc73f
commit
834b807156
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264382
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user