S. Dale Morrey wrote: > 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 confused about the "screen -d" part. Is there really a screen session named myscript.sh, or is that the name of a script that you're trying to run within a screen session? In the latter case, the -d option seems to be confusing screen: ~/Programs/test> sudo env - screen -d myscript.sh | cat There is no screen to be detached matching myscript.sh. And yes, I recommend the above invocation as an approximation to running the line at boot time through rc.local; it uses the root user, clears the environment, and bypasses the tty, all of which have a major impact on screen. - Eric /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
