bash code in rc.local not excuting after bootup

Posted by mrTomahawk on Server Fault See other posts from Server Fault or by mrTomahawk
Published on 2009-05-18T18:03:24Z Indexed on 2011/01/03 16:55 UTC
Read the original article Hit count: 366

Filed under:
|
|
|
|

Does anyone know why a system would not execute the script code within rc.local on bootup? I have a post configuration bash script that I want to run after the initial install of VMware ESX (Red Hat), and for some reason it doesn't seem to execute. I have the setup to log its start of execution and even its progress so that I can see how far it gets in case it fails at some point, but even when I look at that log, I am finding that didn't even started the execution of the script code. I already checked to see that script has execution permissions (755), what else should I be looking at?

Here is the first few lines of my code:

#!/bin/sh
echo >> /tmp/configLog ""
echo >> /tmp/configLog "Entering maintenance mode"

© Server Fault or respective owner

Related posts about linux

Related posts about virtualization