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 1178488 - /etc/rc.d/rc.local misses executable permissions
Summary: /etc/rc.d/rc.local misses executable permissions
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-04 09:14 UTC by Peter Bieringer
Modified: 2015-01-05 09:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-05 09:09:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Bieringer 2015-01-04 09:14:54 UTC
Description of problem:
/etc/rc.d/rc.local isn't executed by systemd because of misses executable permissions

Version-Release number of selected component (if applicable):
systemd-208-11.el7_0.5.x86_64

How reproducible:
Always

Steps to Reproduce:
1. reboot

Actual results:
# ls -1 /var/lock/subsys/local
ls: cannot access /var/lock/subsys/local: No such file or directory


Expected results:
# ls -1 /var/lock/subsys/local
/var/lock/subsys/local


Additional info:

looks like file spec in systemd are improper, currently 644, but should be 755
# rpm -qvl systemd |grep "/etc/rc.d/rc.local"
-rw-r--r--    1 root    root  


Workaround:

chmod a+x /etc/rc.d/rc.local

Comment 2 Lukáš Nykrýn 2015-01-05 09:09:00 UTC
This is intentional, we want users to understatnd that rc.local does not and can't work in the same way as in rhel6.
There is a explanatory comment in the rc.local.

# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.


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