Bug 460869

Summary: service puppet status does not work as non-root
Product: [Fedora] Fedora EPEL Reporter: Sander Hoentjen <sander>
Component: puppetAssignee: David Lutterkort <lutter>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: el5CC: hbrock, k.georgiou
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-22 18:44:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sander Hoentjen 2008-09-02 08:27:31 UTC
Description of problem:

service puppet status does not work as non-root

Version-Release number of selected component (if applicable):
puppet-0.24.4-1.el5

How reproducible:
always

Steps to Reproduce:
0. service puppet is running
1. as root: service puppet status
2. as user: service puppet status

  
Actual results:
as user it says that puppet is not running

Expected results:
root and user give the same result

Additional info:
this can be fixed by changing the init-script:

18c18
< pidfile=${PIDFILE-/var/run/puppet/puppet.pid}
---
> pidfile=${PIDFILE-/var/run/puppet/puppetd.pid}
82c82
<         status $puppetd
---
>         status -p "$pidfile" $puppetd

Comment 1 Sander Hoentjen 2008-10-12 11:55:20 UTC
exists in new version puppet-0.24.5-1.el5 as well, see also:
http://projects.reductivelabs.com/issues/show/1646

Comment 2 David Lutterkort 2008-10-13 18:26:07 UTC
The fix you suggested upstream does indeed work; it should make it into 0.24.6