Bug 821163 - rc.local doesn't work
Summary: rc.local doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-12 16:25 UTC by Account closed by user
Modified: 2012-05-14 12:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-12 16:31:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Account closed by user 2012-05-12 16:25:55 UTC
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 16:31:38 UTC
OK. reboot needed. It runs by default.

Comment 2 Michal Schmidt 2012-05-14 12:10:49 UTC
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.