diff --git a/lib/facter/init.rb b/lib/facter/init.rb deleted file mode 100644 index 9ca0a6e..0000000 --- a/lib/facter/init.rb +++ /dev/null @@ -1,15 +0,0 @@ -# init.rb -# Determine the init system in use on Sabayon/Gentoo systems - - -Facter.add("init") do - setcode do - init = %x{/usr/bin/stat -c '%N' /sbin/init | /usr/bin/awk '{print $3}'}.chomp - if /systemd/.match(init) - 'systemd' - else - 'sysvinit' - end - end -end - diff --git a/lib/puppet/provider/service/sabayon.rb b/lib/puppet/provider/service/sabayon.rb index eb63f98..0439070 100644 --- a/lib/puppet/provider/service/sabayon.rb +++ b/lib/puppet/provider/service/sabayon.rb @@ -3,7 +3,6 @@ Puppet::Type.type(:service).provide :sabayon, :parent => :systemd do desc "Manages `systemd` services using `systemctl`." - defaultfor :operatingsystem => [:sabayon] - defaultfor :osfamily => :gentoo, :init => [:systemd] + defaultfor :operatingsystem => :sabayon end