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

Support disabling both systemd and initd when installing from tarball. #341

Merged
merged 5 commits into from
Mar 5, 2017

Conversation

yanivmn
Copy link
Collaborator

@yanivmn yanivmn commented Mar 2, 2017

This is required for omnibus installations. by default omnibus uses runit as service management.

@@ -177,7 +177,7 @@
only_if { ::File.readlines('/etc/pam.d/su').grep(/# #{pam_limits}/).any? }
end

if node['cassandra']['use_systemd'] == false
if node['cassandra']['use_initd'] == true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've missed this in the original version, let's make this node['cassandra']['use_initd'].

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is already use_initd, can you explain your comment?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An explicit comparison with true is excessive and looks weird in Ruby. Any value other than false or nil evaluates to true.

@@ -186,7 +186,7 @@
mode '0755'
notifies :restart, 'service[cassandra]', :delayed if node['cassandra']['notify_restart']
end
else
elseif node['cassandra']['use_systemd'] == true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@yanivmn
Copy link
Collaborator Author

yanivmn commented Mar 5, 2017

@michaelklishin - can you accept this PR?

@michaelklishin michaelklishin merged commit dda575e into michaelklishin:master Mar 5, 2017
@michaelklishin
Copy link
Owner

Now I can, thank you.

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.

2 participants