Issue #15232 has been reported by Ken Dreyer.

----------------------------------------
Bug #15232: failure to identify services with hasstatus=false on the command 
line
https://projects.puppetlabs.com/issues/15232

Author: Ken Dreyer
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


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.

Example:
<pre>puppet resource service ntpd ensure=running hasstatus=false --debug 
-v</pre>

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.

<pre>
if regex.match(line)
  self.debug "Line match: '#{line}'"
  ary = ...
  ...
fi
</pre>

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


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to