Working script won't work in rc.local

Mikkel L. Ellertson mikkel at infinity-ltd.com
Mon Feb 18 19:42:20 UTC 2008


Barry Yu wrote:
> 
> How can I achieve auto excute my dumon script when starting up F8?
> Now I put my script in /usr/bin/domon, and modified the re.local file  
> like  below but still cannot execute the dumon script;
> 
> #!/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
> /usr/bin/dumon
>  
> 
Does the script require X? If so, rc.local is the wrong place to run 
it. You could modify the /etc/X11/prefdm to run it before loading 
the display manager is started. Now, if you want it to run when ever 
a user dos a GUI login, you could put it in /etc/X11/xinit/xinitrc.d.

Mikkel
-- 

   Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080218/e7b17700/attachment-0001.sig>


More information about the fedora-list mailing list