Bug 711826

Summary: rc.sysinit fails to remove lockfiles under /var/lock/subsys on bootup
Product: Red Hat Enterprise Linux 5 Reporter: Bill Peck <bpeck>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.7CC: azelinka, jscotka, pknirsch, plautrba
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: initscripts-8.45.38-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-08 16:28: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:

Description Bill Peck 2011-06-08 16:10:44 UTC
Description of problem:

This is a very bad regression.  

If the system doesn't reboot cleanly (removing lockfiles on the way down) then on bootup the init process won't even attempt to start the service because the lockfile exists.

Normally rc.sysinit would delete these lockfiles on bootup, but this patch that was introduced between 5.6 and 5.7 keeps that from working.

 -849,6 +850,9 @@
 		*/dovecot)	rm -f $afile/* $afile/*/* ;;
 		*/cups)		rm -f $afile/*/* ;;
 		*/libvirt)	rm -rf $afile/*/* ;;
+		*/subsys)       if [ -d "$afile/rhsm" ]; then 
+					rm -rf $afile/rhsm/* 
+				fi ;;
 		*)		rm -f $afile/* ;;
 	   esac
 	else

Version-Release number of selected component (if applicable):
initscripts-8.45.36-1.el5

How reproducible:
Everytime

Steps to Reproduce:
1. Crash the system
2. not even sshd will start
3.