亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1961 | 回復(fù): 5
打印 上一主題 下一主題

startx 問題 【搞定】 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-10-22 22:49 |只看該作者 |倒序?yàn)g覽
這個(gè)startx是由vncserver 服務(wù)啟動的,script 是/root/.vnc/xstartup。謝謝!



最近碰到一個(gè)問題:客戶的一臺機(jī)器,運(yùn)行RHEL5,在init 3時(shí)也自動啟動了startx,我需要發(fā)現(xiàn)是那個(gè)程序啟動的。
ps -eaf 輸出如下:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Oct16 ?        00:00:00 init [3]  
。。。。。。。。。。。
root      4695     1  0 Oct16 ?        00:00:00 xterm -geometry 80x24+10+10 -ls -title dc-psi-dev:1 (root) Desktop
root      4696     1  0 Oct16 ?        00:00:00 /bin/sh /usr/bin/startx
root      4697     1  0 Oct16 ?        00:00:00 gnome-session
root      4707     1  0 Oct16 ?        00:00:00 /usr/sbin/atd
root      4740  4696  0 Oct16 ?        00:00:00 xinit /etc/X11/xinit/xinitrc -- -auth /root/.serverauth.4696
root      4741  4740  0 Oct16 ?        00:00:54 X :0 -auth /root/.serverauth.4696
。。。。。。。。。。。。。。。。。。。。。。。。。。。。

我grep了/etc/init.d 和 /etc/rc.d目錄下所有文件,沒有發(fā)現(xiàn)‘startx', 'xterm', 'xinit' 任何一個(gè)單詞。

同時(shí)/etc/inittab也沒什么特別。

麻煩大家提示一下,還有什么地方可能啟動了這個(gè)東東? 謝謝先。





#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.  
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon

[ 本帖最后由 wjemail 于 2009-10-23 18:47 編輯 ]

論壇徽章:
1
天秤座
日期:2013-10-23 13:20:42
2 [報(bào)告]
發(fā)表于 2009-10-23 10:38 |只看該作者
頂,關(guān)注

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2009-10-23 10:55 |只看該作者
提示: 作者被禁止或刪除 內(nèi)容自動屏蔽

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2009-10-23 15:13 |只看該作者
linux的運(yùn)行等級改成5就可以了

id:3:initdefault:

這行改成:

id:5:initdefault:

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2009-10-23 16:07 |只看該作者

回復(fù) #4 jxwoy 的帖子

謝謝3樓4樓的答復(fù)。不過和我要求的意思不同。
現(xiàn)在的情況是在init 3時(shí)X 也起來了,我需要知道是哪一個(gè)service或者script啟動了它。

3樓指出的那一行是指在init 5時(shí)啟動X,與init 3無關(guān)。
4樓要求直接啟動到init 5, 不是我要的答案。

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2009-10-28 22:12 |只看該作者

回復(fù) #1 wjemail 的帖子

gnome-session
startkde
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP