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