You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/puppet/files/puppet-openrc-status-fix.patch

16 lines
709 B

diff -Naur puppet-3.1.1-r2.orig/lib/puppet/provider/service/openrc.rb puppet-3.1.1-r2/lib/puppet/provider/service/openrc.rb
--- all/puppet-3.1.1.orig/lib/puppet/provider/service/openrc.rb 2013-06-05 03:32:53.646824966 -0400
+++ all/puppet-3.1.1/lib/puppet/provider/service/openrc.rb 2013-06-05 03:37:25.333824967 -0400
@@ -10,8 +10,10 @@
defaultfor :operatingsystem => :gentoo
defaultfor :operatingsystem => :funtoo
+ has_command(:rcstatus, '/bin/rc-status') do
+ environment :RC_SVCNAME => nil
+ end
commands :rcservice => '/sbin/rc-service'
- commands :rcstatus => '/bin/rc-status'
commands :rcupdate => '/sbin/rc-update'
self::STATUSLINE = /^\s+(.*?)\s*\[\s*(.*)\s*\]$/