the cpu is used 100% when X startup in rc.local

Issues related to software problems.
Post Reply
joh_qin
Posts: 3
Joined: 2009/09/24 08:41:41

the cpu is used 100% when X startup in rc.local

Post by joh_qin » 2009/09/24 09:13:24

hello everyone:

i am using CentOS 5.3
the CentOS startup as init3.d, and i write X & in rc.local as follows:

# rc.local

X &

#

when CentOS startup, i can't switch using ctrl+alt+F1, but i could login remote, and find that
X using 100% cpu time.

thank you!

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

the cpu is used 100% when X startup in rc.local

Post by gerald_clark » 2009/09/24 14:51:19

Don't do that.
Run startx from a console, or configure the system to startup in runlevel 5.

joh_qin
Posts: 3
Joined: 2009/09/24 08:41:41

Re: the cpu is used 100% when X startup in rc.local

Post by joh_qin » 2009/09/25 01:14:07

but it's ok to start X in shell

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: the cpu is used 100% when X startup in rc.local

Post by pschaff » 2009/09/25 12:03:41

It will work to start "X" but is generally preferred to use the "startx" script or boot in runlevel 5 so the display manager runs, as Gerald suggested. It is also highly recommended to [b]not[/b] run X, startx, or otherwise log into a GUI as root.

joh_qin
Posts: 3
Joined: 2009/09/24 08:41:41

Re: the cpu is used 100% when X startup in rc.local

Post by joh_qin » 2009/09/27 01:30:21

thank you very much!
i'll use startx
thanke you

Post Reply