Bug 768666 - /etc/rc.d/rc.local isn't used
Summary: /etc/rc.d/rc.local isn't used
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-17 18:41 UTC by Need Real Name
Modified: 2014-03-17 03:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-19 19:55:09 UTC
Type: ---


Attachments (Terms of Use)

Description Need Real Name 2011-12-17 18:41:00 UTC
Description of problem:

rc.local seems to be ignored at boot despite following the docs:

"The /etc/rc.d/rc.local local customization script is no longer included by default. Administrators who need this functionality merely have to create this file, make it executable, and it will run on boot."
from http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html

# ls -la /etc/rc.d/rc.local
-rwxr-xr-x. 1 root root 23 Dec 17 19:10 /etc/rc.d/rc.local

# cat /etc/rc.d/rc.local 
date > /tmp/date.txt &

# reboot

# cat /tmp/date.txt
cat: /tmp/date.txt: No such file or directory


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Bill Nottingham 2011-12-19 19:55:09 UTC
/etc/rc.d/rc.local needs to start with a valid shell script header, such as: "#!/bin/sh"


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