    # File lib/chef/provider/service/upstart.rb, line 173
            def upstart_state
              command = "/sbin/status #{@new_resource.service_name}"
              status = popen4(command) do |pid, stdin, stdout, stderr|
                stdout.each_line do |line|
                  # rsyslog stop/waiting
                  # service goal/state
                  # OR
                  # rsyslog (stop) waiting
                  # service (goal) state
                  line =~ UPSTART_STATE_FORMAT
                  data = Regexp.last_match
                  return data[2]
                end
              end
            end