Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved recipe so that it uses default Opsworks definitions #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fred
Copy link

@fred fred commented Sep 27, 2014

Here is a pull request with my changes, apply if you think it will be useful to you.
Any comments or objections let me know.

@redterror
Copy link

+1, the restart fix here is important.

@fbbergamo
Copy link

+1

alaroche pushed a commit that referenced this pull request Nov 16, 2015
Jobs use /tmp a lot, so mount it on ephemeral partition
@rhzs
Copy link

rhzs commented Jan 25, 2017

@fred the restart sidekiq does not work
I got error on opswork,

 
================================================================================
Error executing action `run` on resource 'execute[restart Rails app myapp]'
================================================================================
 
 
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of sudo monit restart -g sidekiq_myapp_group ----
STDOUT: 
STDERR: monit: action failed -- Other action already in progress -- please try again later
---- End output of sudo monit restart -g sidekiq_myapp_group ----
Ran sudo monit restart -g sidekiq_myapp_group returned 1
 
 
Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_sidekiq/recipes/deploy.rb
 
34:   execute "restart Rails app #{application}" do
35:     command node[:sidekiq][application][:restart_command]
36:   end
37: 
 
 
 
Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_sidekiq/recipes/deploy.rb:34:in `block in from_file'
 
execute("restart Rails app myapp") do
action "run"
retries 0
retry_delay 2
command "sudo monit restart -g sidekiq_myapp_group"
backup 5
returns 0
cookbook_name "opsworks_sidekiq"
recipe_name "deploy"
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants