- Fix rc.d script

This commit is contained in:
Pietro Cerutti 2010-12-23 15:32:11 +00:00
parent 961578f02c
commit 7c530f08a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266796

View file

@ -27,14 +27,17 @@ cruisecontrolrb_start() {
${command} start ${command_args}
}
cruisecontrolrb_stop() {
kill $(cat $pidfile)
if [ -f $pidfile ]; then
kill $(cat $pidfile)
fi
## also stop the builders
cd %%PREFIX%%/www/${name}/tmp/pids/builders/
for builder in $(ls); do
kill $(cat $builder)
rm ${builder}
}
done
if [ -d %%PREFIX%%/www/${name}/tmp/pids/builders ]; then
cd %%PREFIX%%/www/${name}/tmp/pids/builders
for builder in $(ls); do
kill $(cat $builder)
rm ${builder}
done
fi
}
load_rc_config $name