Skip to content

Commit

Permalink
Fix systemd restart command
Browse files Browse the repository at this point in the history
  • Loading branch information
joe4dev committed Aug 16, 2018
1 parent 707b34a commit d7da28c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cookbooks/cwb-server/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
default['cwb-server']['chef']['server_url'] = "https://#{server_host}:443/organizations/#{organisation}"

# Chef VM provisioning
# Chef client versions: https://github.com/chef/chef/blob/master/RELEASE_NOTES.md
default['cwb-server']['chef']['omnibus_chef_version'] = '12.14.60'
default['cwb-server']['chef']['provisioning_path'] = '/etc/chef'

Expand Down
2 changes: 1 addition & 1 deletion cookbooks/cwb-server/recipes/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,5 @@ def bundle(cmd, opts = {})
end
end
# TODO: Think about graceful restart for currently running worker processes!
restart_command "sudo systemctl restart #{app['name']}.target"
restart_command "sudo systemctl daemon-reload && sudo systemctl restart #{app['name']}.target"
end

0 comments on commit d7da28c

Please sign in to comment.