Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 17279

Summary: rc.local is run every time the runlevel changes!
Product: [Retired] Red Hat Linux Reporter: John Looney <valen>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: rvokal
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: 2000-11-29 00:49: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 John Looney 2000-09-06 11:06:18 UTC
I add stuff like oracle startup commands, my sound driver extras, a 
netrek server, qmail and a few other things to rc.local.

 It's my understanding that rc.local should be run every time the machine 
books, after everything else.

 If the default runlevel is 3, and someone does "init 5", rc.local is re-
run, and chaos ensues. A simple fix for this would be to add

        touch /var/lock/subsys/local

 to /etc/rc.local and to add 

        rm -f /var/lock/subsys/local 

to rc.sysinit. Pretty please ?

John

Comment 1 Bill Nottingham 2001-01-30 00:30:14 UTC
I really hate changing rc.local (it's %config(noreplace)), but
this is obviously correct; will be fixed in 5.60-1.