Working script won't work in rc.local

Neil Cherry ncherry at linuxha.com
Tue Feb 19 00:49:19 UTC 2008


Barry Yu wrote:

>     Here is my rc.local file, my script is the last line;
> 
>     #!/bin/sh
>     #
>     # This script will be executed *after* all the other init scripts.
>     # You can put your own initialization stuff in here if you don't
>     # want to do the full Sys V style init stuff.
> 
>     touch /var/lock/subsys/local
>     /home/Scripts/./dumon

> xrandr --output VGA --auto --output TMDS-1 --auto --right-of VGA

There's your problem, the rc scripts are not attached to any
terminal and not associate with any display. Starting X apps
in an rc script is not the appropriate place for that script.
That belongs in your .bashrc script so when you login it starts.

-- 
Linux Home Automation         Neil Cherry       ncherry at linuxha.com
http://www.linuxha.com/                         Main site
http://linuxha.blogspot.com/                    My HA Blog
Author of:    	Linux Smart Homes For Dummies




More information about the fedora-list mailing list