Permalink
Browse files

Use user provided start command if available

  • Loading branch information...
1 parent ac38eed commit 5abf0d8df299eca6a292720d7fa19587c38c2262 @braintreeps braintreeps committed Feb 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 daemon/daemon_helper.rb
View
@@ -56,7 +56,7 @@ def restart(start_cmd)
end
def start(start_cmd)
- cmd ||= "cd #{CRUISE_HOME} && ./cruise start -d"
+ cmd = start_cmd || "cd #{CRUISE_HOME} && ./cruise start -d"
log(:env, ENV.inspect)
# remove cruise pid file if process is no longer running
@@ -123,4 +123,4 @@ def stop
else
return 0
end
-end
+end

0 comments on commit 5abf0d8

Please sign in to comment.