Bug 821163

Summary: rc.local doesn't work
Product: [Fedora] Fedora Reporter: Account closed by user <c719711>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: johannbg, metherid, mschmidt, notting, plautrba, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-12 16:31:38 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 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.