<br><br><b><i>"Mikkel L. Ellertson" &lt;mikkel@infinity-ltd.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Barry Yu wrote:<br>&gt; <br>&gt; How can I achieve auto excute my dumon script when starting up F8?<br>&gt; Now I put my script in /usr/bin/domon, and modified the re.local file  <br>&gt; like  below but still cannot execute the dumon script;<br>&gt; <br>&gt; #!/bin/sh<br>&gt; #<br>&gt; # This script will be executed *after* all the other init scripts.<br>&gt; # You can put your own initialization stuff in here if you don't<br>&gt; # want to do the full Sys V style init stuff.<br>&gt; <br>&gt; touch /var/lock/subsys/local<br>&gt; /usr/bin/dumon<br>&gt;  <br>&gt; <br>Does the script require X? If so, rc.local is the wrong place to run <br>it. You could modify the /etc/X11/prefdm to run it before loading <br>the display manager is started. Now, if you want it to run when ever
 <br>a user dos a GUI login, you could put it in /etc/X11/xinit/xinitrc.d.<br><br>Mikkel<br>-- <br><br>   Do not meddle in the affairs of dragons,<br>for thou art crunchy and taste good with Ketchup!<br><br>-- <br>fedora-list mailing list<br>fedora-list@redhat.com<br>To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list</blockquote>Obviously Mikkel Ellertson, Gordon Messmer provided the correct direction with detailed methods, I put my script into /etc/X11/xinit/xinitrc.d directory and rename my script by adding .sh to script name, then it works now! Thanks for others who been helping too.<br>