- Fix rc.d script
This commit is contained in:
parent
961578f02c
commit
7c530f08a5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266796
1 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue