Bug 821163 - rc.local doesn't work
rc.local doesn't work
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
17
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: systemd-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-12 12:25 EDT by Account closed by user
Modified: 2012-05-14 08:10 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-12 12:31:38 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Account closed by user 2012-05-12 12:25:55 EDT
rc.local is not a standard service, and it never was. There is no start, stop, status ...

rc-local.service is wrong.

error:
# systemctl enable rc-local.service
Warning: unit files do not carry install information. No operation executed.
Comment 1 Account closed by user 2012-05-12 12:31:38 EDT
OK. reboot needed. It runs by default.
Comment 2 Michal Schmidt 2012-05-14 08:10:49 EDT
Correct. There's a note about it in the unit file:

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.d/rc.local is executable.

I recommend creating your own unit though instead of using rc.local. That way you have more control over its ordering, etc.

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