Bug 56598

Summary: stale /var/run/amd.pid file breaks amd startup script.
Product: [Retired] Red Hat Linux Reporter: Eugene Kanter <ekanter>
Component: am-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: aleksey, leon
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-25 17:54:34 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 Eugene Kanter 2001-11-21 17:07:45 UTC
Description of Problem:

The root cause: amd does not remove its /var/run/amd.pid file when asked 
to exit.

The result:

impossible to start/restart amd using /etc/rc.d/init.d/amd scripts.

Version-Release number of selected component (if applicable):

am-utils-6.0.6-3

How Reproducible:

always.

Steps to Reproduce:
1. stop amd: service amd stop
2. start amd from command line: amd -F /etc/amd.conf
3. stop amd from command line: kill -TERM `cat /var/run/amd.pid`
4. attempt to restart amd: service amd restart: nothing happends:
Stopping amd:
Starting amd:
5. service amd status:

amd dead but pid file exists

Actual Results:

see above.

Expected Results:

service amd restart should be able to recover from "amd dead but pid file 
exists" situation.

Comment 1 Eugene Kanter 2005-08-28 20:54:53 UTC
This bug was CLOSED RAWHIDE without providing fixed package version. Please add
minimum description of what was done.