Is it possible that environment variable differences (eg. PATH) between your shell and the rc.local's environment, are causing your problem? I encounter this every once in a while (just infreuent enough that I forget), when working with cron scripts; perhaps rc.local is similar.
I would do this to diagnose: - Try something simple like this to verify that the rc.local script is actually running: "/bin/date >> /tmp/test.rc.local.log". This will tell you whether or not your rc.local is actually running, vs. running with some kind of silent error. - Everywhere you can, use a fully-qualified path (eg "/usr/bin/screen" instead of "screen") - Whenever possible, redirect stdout and stderr to a file, eg: "(/usr/bin/screen -d /path/to/myscript.sh) > /tmp/test_screen.log 2>&1" Lloyd Brown Systems Administrator Fulton Supercomputing Lab Brigham Young University http://marylou.byu.edu On 01/10/2014 07:38 AM, S. Dale Morrey wrote: > Hi everyone, > > I've got a puzzler going on here and I'm hoping someone can point me in the > right direction. > > I've got a box running Centos 6. I have a script I need to run at boot, it > just does a screen -d myscript.sh > So I placed the line in /etc/rc.local > > I've checked the permissions, and everything looks correct. > I've manually run rc.local and it works fine. > > However when I reboot the script is not being run. > I'm not really sure what to check/fix or look at, but to my mind it looks > like rc.local isn't running. > > This is a stock install of centos, selinux has been disabled and I think > someone might have possibly removed some excess daemons from chkconfig > (acpid & atd are missing). > However it seems to boot and run just fine. It never does run the rc.local > scripts though. > > Any advice? > Thanks in advance! > > /* > PLUG: http://plug.org, #utah on irc.freenode.net > Unsubscribe: http://plug.org/mailman/options/plug > Don't fear the penguin. > */ > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
