Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
small fixes to rc script (path to ruby, etc.)
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Jun 30, 2009
1 parent ca449d1 commit a7c8282
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions files/webistrano.in
Expand Up @@ -25,15 +25,16 @@ webistrano_user="${webistrano_user:-"www"}"
name="webistrano"
rcvar=${name}_enable

$webistrano_bind = ""
if [ "$webistrano_ip" != "0.0.0.0" ]
then
$webistrano_bind="-b ${webistrano_ip} "
webistrano_bind="-b ${webistrano_ip} "
else
webistrano_bind=""
fi

load_rc_config $name

command="%%PREFIX%%/ruby %%WWWDIR%%/script/server -d -p ${webistrano_port} ${webistrano_bind}-e production"
command="%%PREFIX%%/bin/ruby %%WWWDIR%%/script/server -d -p ${webistrano_port} ${webistrano_bind}-e production"
pidfile=/var/run/${name}.pid

: ${webistrano_enable="NO"}
Expand Down

0 comments on commit a7c8282

Please sign in to comment.