Commit 7f343607 authored by Tim Smith's avatar Tim Smith
Browse files

Use runit-systemd on Debian 9+



Runit-systemd properly starts runsvdir as one would expect
Signed-off-by: Tim Smith's avatarTim Smith <tsmith@chef.io>
parent 34e9ddf7
......@@ -48,14 +48,10 @@ when 'rhel', 'amazon'
end
when 'debian'
package 'runit' do
pkg_name = platform?('debian') && node['platform_version'].to_i >= 9 ? 'runit-systemd' : 'runit'
package pkg_name do
action :install
response_file 'runit.seed'
end
execute 'runsvdir-start' do
command '/etc/runit/2 &'
not_if 'ps -ef | grep -v grep | grep "runsvdir"'
only_if { platform?('debian') && node['platform_version'].to_i >= 9 }
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment