diff options
author | gahr <gahr@FreeBSD.org> | 2010-12-23 23:32:11 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2010-12-23 23:32:11 +0800 |
commit | 9e11d31d6ec81e584e698a01d64200d9abd39d7e (patch) | |
tree | 785ba5c4b625210c66ca3c649e40db392c32bdac /www/ruby-cruisecontrolrb | |
parent | ff1eeb1e1499be7a27baa116304a185aadf1da63 (diff) | |
download | freebsd-ports-gnome-9e11d31d6ec81e584e698a01d64200d9abd39d7e.tar.gz freebsd-ports-gnome-9e11d31d6ec81e584e698a01d64200d9abd39d7e.tar.zst freebsd-ports-gnome-9e11d31d6ec81e584e698a01d64200d9abd39d7e.zip |
- Fix rc.d script
Diffstat (limited to 'www/ruby-cruisecontrolrb')
-rw-r--r-- | www/ruby-cruisecontrolrb/files/cruisecontrolrb.in | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in index e6a4658c53f0..58e735964db6 100644 --- a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in +++ b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in @@ -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 |