# File lib/puppet/provider/service/base.rb, line 61 61: def status 62: if @resource[:status] or statuscmd 63: # Don't fail when the exit status is not 0. 64: ucommand(:status, false) 65: 66: # Expicitly calling exitstatus to facilitate testing 67: if $?.exitstatus == 0 68: return :running 69: else 70: return :stopped 71: end 72: elsif pid = self.getpid 73: self.debug "PID is %s" % pid 74: return :running 75: else 76: return :stopped 77: end 78: end