I can confirm that rc.local is not running for me either. I'm using an HP Compaq 6510b, which apparently has problems with suspending under Ubuntu 8.04 Hardy. The suggested fix for this is to add "echo 1 > /proc/acpi/video/C098/DOS" to /etc/rc.local, which allows the laptop to suspend without hard-locking. However, on bootup, "cat /proc/acpi/video/C098/DOS" returns "DOS Setting: <4>". If I run "/etc/init.d/rc.local start", then "cat /proc/acpi/video/C098/DOS" will return "DOS Setting: <1>" afterward, so I know for certain that running rc.local manually does work.
All the other scripts were running fine to my knowledge, as the system was booting up just fine and I wasn't noticing any odd behaviour that would lead me to believe any of them weren't running as usual. However, I'm completely at a loss as to why, but rc.local seems to be running now. The test script did run properly, and output "OK" to /var/log/test, and also now "cat /proc/acpi/video/C098/DOS" produces "DOS setting: <1>".
I'd like to say that perhaps rc.local was indeed running previously, but it was running before /proc was created, or some such goofy thing, but I can't prove it. I also can't see why creating the test script and installing it in defaults might fix rc.local -- it doesn't make any sense. Sorry I can't be of any further help at the moment. I plan on building another box soon though, so I'll install Hardy and put a test line in rc.local, and if it has problems running it, I'll resume troubleshooting with you.
For what it's worth, I suspect there may be problems with rc.local outside of what I'd experienced -- a quick Google search for "hardy rc.local" turns up this URL: http://www.linuxquestions.org/questions/ubuntu-63/rc.local-doesnt-run-in-hardy-639619/ However, the problem may be with another script not firing, and thus the bootup never really "completing", even though the X server starts.
It's good to hear that your system is working properly now. I think you are probably right that rc.local was running previously, but it can't be verified now. Anyway, thank you for your involvement.
I'm not sure if this is the proper way to reply to this as I'm new to this
stuff. Honestly I've never submitted a bug report before so I apologize if
I'm doing something outside of accepted protocol.
So, I ran "sudo update-rc.d rc.local defaults" and got the following reply:
System startup links for /etc/init.d/rc.local already exist.
So it appears that the link already exists. What strikes me as odd is that if
I manually run the script via /etc/init.d/rc.local start it runs fine.
Whatever is calling rc.local must be failing for some reason prior to the
actual running rc.local.
Unfortunately I have little knowledge of upstart, but what I'd like to do is
disable x so I can come right down to a command line and more easily watch the
boot process as it happens.
I installed a stock Hardy on a virtual machine and the rc.local ran fine. I'm
beginning to think this may not be a bug. The only reason I posted it is
searches.
Has anyone else been able to replicate the failing rc.local or seen other
references to it?
If you hit Ctrl-Alt-F8 at any time, you can switch to the console where the startup output is displayed -- on mine, the last line it shows is "* Running local boot scripts (/etc/rc.local) [ OK ]". I did not think to look at this when the problem was presenting for me. Does it show up on yours?
Hit Ctrl-Alt-F7 to get back to your X session, by the way.
Actually, now that I've been poking at this, I realize that this really wasn't a bug. Though it seemed like it to me at first. Apparently the line where I was calling syndaemon to disable my touchpad while typing was bombing. Since it was at the top of the script it killed it and nothing else ran. As I've stated before, it worked fine when running rc.local start after the system was booted. The error was something to the effect that it couldn't find the display, which tells me it was running before x had a chance to get it's act together. I removed the syndaemon line and then the rest of the script ran fine.
I also used update-rc.d to remove all the symlinks and then put them back but I don't think that had any effect but I can't prove that one way or another.
So, I'd say this is an ID10T error on my part and not a bug at all.
Thanks for the help guys. I'll try to make sure I have a real bug next time I feel the urge to post one. ;)
I can confirm that rc.local is not running for me either. I'm using an HP Compaq 6510b, which apparently has problems with suspending under Ubuntu 8.04 Hardy. The suggested fix for this is to add "echo 1 > /proc/acpi/ video/C098/ DOS" to /etc/rc.local, which allows the laptop to suspend without hard-locking. However, on bootup, "cat /proc/acpi/ video/C098/ DOS" returns "DOS Setting: <4>". If I run "/etc/init. d/rc.local start", then "cat /proc/acpi/ video/C098/ DOS" will return "DOS Setting: <1>" afterward, so I know for certain that running rc.local manually does work.