Skip to content

Commit

Permalink
Fix for rc-status not showing puppet when puppet is run as a service
Browse files Browse the repository at this point in the history
/bin/rc-status doesn't show the service specified in the environment
variable "RC_SVCNAME", which when puppet is started as a service is set
to "puppet".

Updated to use "has_command" instead of ENV.delete
  • Loading branch information
koshatul authored and adrienthebo committed May 15, 2013
1 parent f5bd405 commit 15815f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/provider/service/openrc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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*\]$/
Expand Down

0 comments on commit 15815f9

Please sign in to comment.