The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #15232

failure to identify services with hasstatus=false on the command line

Added by Ken Dreyer almost 4 years ago. Updated over 3 years ago.

Status:AcceptedStart date:06/26/2012
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Affected Puppet version: Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


When running puppet resource service on the command line, using the hasstatus=false code path, the getpid function (lib/puppet/provider/service/base.rb) will match Puppet itself.


puppet resource service ntpd ensure=running hasstatus=false --debug -v

The debug output indicates that a new ntpd PID is found each time this command is run. Insert a new debug statement in base.rb to demonstrate that Puppet is matching itself.

if regex.match(line)
  self.debug "Line match: '#{line}'"
  ary = ...

We ran across this during our Puppet training class with Eric.


#1 Updated by James Turnbull over 3 years ago

  • Category set to ralsh
  • Status changed from Unreviewed to Accepted

Also available in: Atom PDF