Bug 1184536

Summary: wrong value of /proc/PID/comm
Product: Red Hat Software Collections Reporter: Ondřej Pták <optak>
Component: mod_perlAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Ondřej Pták <optak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-perl520CC: jorton, kanderso, mkyral, ppisar
Target Milestone: rc   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mod_perl-2.0.8-5.20150122svn1653807.el7 mod_perl-2.0.8-5.20150122svn1653807.el6 Doc Type: Bug Fix
Doc Text:
Cause: Executing "killall httpd" command to terminate an HTTP daemon provided by httpd24-httpd package when mod_perl Apache module is in use. Consequence: The command cannot find the daemon process. Fix: The daemon was changed to set zeroth argument to its short name "httpd", so it is listed under this name in a process listing. Result: Its possible to terminate httpd process running a Red Hat Software Collection's mod_perl by the "killall httpd" command.
Story Points: ---
Clone Of:
: 1193989 1205111 1388851 (view as bug list) Environment:
Last Closed: 2015-06-04 09:34:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1193989, 1205111    

Description Ondřej Pták 2015-01-21 16:01:38 UTC
Description of problem:
When service httpd24-httpd is running, httpd processes have bad command name in /proc/PID/comm and so "killall httpd" doesn't work

Version-Release number of selected component (if applicable):
httpd24-httpd-2.4.6-22.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. service httpd24-httpd start
2. ps -e|grep httpd

Actual results:
processes has name: /opt/rh/httpd24


Expected results:
processes should have name: httpd

Additional info:
1) "killall /opt/rh/httpd24/root/usr/sbin/httpd" does work
2) this problem is only with httpd24 on RHEL-6, systems's httpd is OK, httpd24@RHEL-7 is also OK

Comment 2 Joe Orton 2015-01-27 13:08:33 UTC
jkaluza says this is a mod_perl bug, similar to bug 782369.  We can attempt to resolve in perl520's mod_perl.

Comment 7 errata-xmlrpc 2015-06-04 09:34:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-1065.html