Re: Working script won't work in rc.local - Resolved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





"Mikkel L. Ellertson" <mikkel@xxxxxxxxxxxxxxxx> wrote:
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!

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
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.
-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux