Bug 17279
| Summary: | rc.local is run every time the runlevel changes! | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | John Looney <valen> |
| Component: | initscripts | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.2 | CC: | 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: | |||
I really hate changing rc.local (it's %config(noreplace)), but this is obviously correct; will be fixed in 5.60-1. |
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