diff options
author | gahr <gahr@FreeBSD.org> | 2011-01-06 17:53:46 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2011-01-06 17:53:46 +0800 |
commit | b8accd176898a558c7371436c12c075dccf48dd4 (patch) | |
tree | 97ee6d8c9e1af6f72f020f78f0b583775ce23e0e | |
parent | 73b3f4de6904a4e3c35e765428d58247527c1d52 (diff) | |
download | freebsd-ports-gnome-b8accd176898a558c7371436c12c075dccf48dd4.tar.gz freebsd-ports-gnome-b8accd176898a558c7371436c12c075dccf48dd4.tar.zst freebsd-ports-gnome-b8accd176898a558c7371436c12c075dccf48dd4.zip |
- Fix RC script
- Bump PORTREVISION
-rw-r--r-- | www/ruby-cruisecontrolrb/Makefile | 1 | ||||
-rw-r--r-- | www/ruby-cruisecontrolrb/files/cruisecontrolrb.in | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/ruby-cruisecontrolrb/Makefile b/www/ruby-cruisecontrolrb/Makefile index a9baa5799378..5e8bc32f282b 100644 --- a/www/ruby-cruisecontrolrb/Makefile +++ b/www/ruby-cruisecontrolrb/Makefile @@ -6,6 +6,7 @@ PORTNAME= cruisecontrolrb PORTVERSION= 1.4.0 +PORTREVISION= 1 CATEGORIES= www devel ruby MASTER_SITES= RF PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} diff --git a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in index 58e735964db6..578797b89ec9 100644 --- a/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in +++ b/www/ruby-cruisecontrolrb/files/cruisecontrolrb.in @@ -17,14 +17,15 @@ name=cruisecontrolrb rcvar=${name}_enable -pidfile="%%PREFIX%%/www/${name}/tmp/pids/mongrel.pid" -command="%%PREFIX%%/www/${name}/cruise" +homedir="%%PREFIX%%/www/${name}" +pidfile="${homedir}/tmp/pids/mongrel.pid" +command="./cruise" start_cmd="cruisecontrolrb_start" stop_cmd="cruisecontrolrb_stop" cruisecontrolrb_start() { - ${command} start ${command_args} + cd ${homedir} && ${command} start ${command_args} } cruisecontrolrb_stop() { if [ -f $pidfile ]; then |