Bug 17279 - rc.local is run every time the runlevel changes!
Summary: rc.local is run every time the runlevel changes!
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 6.2
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-09-06 11:06 UTC by John Looney
Modified: 2014-03-17 02:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-11-29 00:49:47 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.