-
Notifications
You must be signed in to change notification settings - Fork 228
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
Conversation
recipes/tarball.rb
Outdated
@@ -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 |
There was a problem hiding this comment.
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']
.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
.
recipes/tarball.rb
Outdated
@@ -186,7 +186,7 @@ | |||
mode '0755' | |||
notifies :restart, 'service[cassandra]', :delayed if node['cassandra']['notify_restart'] | |||
end | |||
else | |||
elseif node['cassandra']['use_systemd'] == true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
@michaelklishin - can you accept this PR? |
Now I can, thank you. |
This is required for omnibus installations. by default omnibus uses runit as service management.