Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Use user provided start command if available
Browse files Browse the repository at this point in the history
  • Loading branch information
braintreeps committed Feb 9, 2010
1 parent ac38eed commit 5abf0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/daemon_helper.rb
Expand Up @@ -56,7 +56,7 @@ def restart(start_cmd)
end end


def start(start_cmd) def start(start_cmd)
cmd ||= "cd #{CRUISE_HOME} && ./cruise start -d" cmd = start_cmd || "cd #{CRUISE_HOME} && ./cruise start -d"
log(:env, ENV.inspect) log(:env, ENV.inspect)


# remove cruise pid file if process is no longer running # remove cruise pid file if process is no longer running
Expand Down Expand Up @@ -123,4 +123,4 @@ def stop
else else
return 0 return 0
end end
end end

0 comments on commit 5abf0d8

Please sign in to comment.