Skip to content

Commit

Permalink
Fixing background job init
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel committed May 12, 2008
1 parent 5a2d151 commit 696d1f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions History.txt
Expand Up @@ -2,6 +2,8 @@

* Fixing backgroundjob to use --daemon
* Fixing merb init to use daemon init function on start (then it plays nice with monit)
* Fixing backgroundjob init (BIN_PATH error)
* Adding --log to backgroundjob init.d

== 0.3.5 2008-05-08

Expand Down
6 changes: 3 additions & 3 deletions lib/recipes/centos/backgroundjob.rb
Expand Up @@ -10,8 +10,8 @@
<dd>Path to start.
<dd class="default">Defaults to:
<pre>
\#{current_path}/script/bj --forever --rails_env=production --rails_root=\#{current_path} --redirect \
--redirect=\#{backgroundjob_log_path} --pidfile=\#{backgroundjob_pid_path} --daemon
\#{current_path}/script/bj --forever --rails_env=production --rails_root=\#{current_path} \
--redirect=\#{backgroundjob_log_path} --log=\#{backgroundjob_log_path} --pidfile=\#{backgroundjob_pid_path} --daemon
</pre>
</dd>
<dt>backgroundjob_pid_path</dt>
Expand All @@ -30,7 +30,7 @@
fetch_or_default(:backgroundjob_log_path, "#{shared_path}/log/bj.log")

default_bin_path = "#{current_path}/script/bj run --forever --rails_env=production --rails_root=#{current_path} \
--redirect=#{backgroundjob_log_path} --pidfile=#{backgroundjob_pid_path} --daemon"
--redirect=#{backgroundjob_log_path} --log=#{backgroundjob_log_path} --pidfile=#{backgroundjob_pid_path} --daemon"

fetch_or_default(:backgroundjob_bin_path, default_bin_path)

Expand Down
2 changes: 1 addition & 1 deletion lib/templates/backgroundjob/backgroundjob.initd.centos.erb
Expand Up @@ -13,7 +13,7 @@
RETVAL=0

DESC="backgroundjob daemon (<%= application %>)"
BIN_PATH"<%= backgroundjob_bin_path %>"
BIN_PATH="<%= backgroundjob_bin_path %>"
PID_FILE="<%= backgroundjob_pid_path %>"

start() {
Expand Down

0 comments on commit 696d1f1

Please sign in to comment.