Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1039465

Summary: Consider replacing 'exit 0' in rc.local with 'true'
Product: Red Hat Enterprise Linux 7 Reporter: Marian Csontos <mcsontos>
Component: systemdAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Sklenar <psklenar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jscotka, lnykryn, systemd-maint-list
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-207-9.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:33:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marian Csontos 2013-12-09 08:09:05 UTC
Description of problem:
'exit 0' in rc.local breaks any script who attempts to append to it.

What is the rationale behind the change?

This change is incompatible with previous releases and should be treated with due care.

Version-Release number of selected component (if applicable):
systemd-207-8.el7.x86_64

Actual results:
rc.local skips appended sections

Expected results:
rc.local should run everything there is

Comment 2 Lukáš Nykrýn 2013-12-09 14:38:28 UTC
(In reply to Marian Csontos from comment #0)
> What is the rationale behind the change?
> 
> This change is incompatible with previous releases and should be treated
> with due care.
rc.local behaves quite differently from rhel6, so my intent was that administrator should read the warning in comments in this file.

But the proposal make sense, just please note that you still need to run chmod +x.

Comment 3 Lukáš Nykrýn 2013-12-13 12:16:28 UTC
After some thinking, we have this file for backward compatibility, so it would maybe make sense to use "touch /var/lock/subsys/local" again.

Comment 6 Ludek Smid 2014-06-13 11:33:54 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.