deepin启动的等级及初始化配置文件inittab在哪里?
Tofloor
poster avatar
footballman
deepin
2016-12-08 01:06
Author
deepin启动的等级及初始化配置文件inittab在哪里?
难道改名了,还是放到别的文件夹了?
Reply Favorite View the author
All Replies
avatar
emofode
deepin
2016-12-08 01:26
#1
deepin 用的是 systemd
Reply View the author
avatar
footballman
deepin
2016-12-08 02:36
#2
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1 136888  6748 ?        Ss   17:24   0:01 /sbin/init splash
root         2  0.0  0.0      0     0 ?        S    17:24   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    17:24   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   17:24   0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S    17:24   0:01 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    17:24   0:00 [rcu_bh]
root         9  0.0  0.0      0     0 ?        S    17:24   0:00 [migration/0]
这是我的进程列表,里面的1号进程是init。
Reply View the author
avatar
knightlu
deepin
2016-12-08 05:09
#3
用的systemd,没有inittab了,那个是sysV-init才有的,想研究sysV可以换centos6
Reply View the author
avatar
纯洁的老污师
deepin
2016-12-08 05:46
#4
https://bbs.deepin.org/post/132826
用的systemd,没有inittab了,那个是sysV-init才有的,想研究sysV可以换centos6

centos6 也不是 sysV-init,是 upstart,所以也没 inittab
Reply View the author
avatar
footballman
deepin
2016-12-08 17:58
#5
https://bbs.deepin.org/post/132826
centos6 也不是 sysV-init,是 upstart,所以也没 inittab

我懂了,其实用了systemd后部分sysV-init会被保留下来,例如init程式。
另外,弱弱地问一句,deepin文档管理器怎么查看隐藏文件,即.文件名类的文件。
Reply View the author
avatar
185******21
deepin
2016-12-09 17:48
#6
https://bbs.deepin.org/post/132826
我懂了,其实用了systemd后部分sysV-init会被保留下来,例如init程式。
另外,弱弱地问一句,deepin文档 ...

ctrl + H就行了
Reply View the author
avatar
knightlu
deepin
2016-12-10 02:26
#7
https://bbs.deepin.org/post/132826
centos6 也不是 sysV-init,是 upstart,所以也没 inittab

centos6不是upstart,就是传统的sysV,Ubuntu15.10以前用的upstart
Reply View the author
avatar
footballman
deepin
2016-12-10 20:20
#8

非常感谢!
Reply View the author
avatar
Feng Yu
deepin
2016-12-11 06:09
#9
CentOS6不是upstart,或者说并不像ubuntu那样完全使用upstart(ubuntu16.04版本使用systemd)。CentOS6使用的是SysV,但是有部分rc服务托管在upstart,所以这部分服务的启动速度大大加快,你可以在centos6的/etc/init/目录下看到这几个服务。等于用的是一个阉割版本的upstart,所以有些指令表现并不像ubuntu那么好用。
Reply View the author
avatar
纯洁的老污师
deepin
2016-12-13 02:06
#10
https://bbs.deepin.org/post/132826
centos6不是upstart,就是传统的sysV,Ubuntu15.10以前用的upstart

$ rpm -qa | grep upstart
upstart-0.6.5-10.el6.x86_64

$ rpm -qf /sbin/init
upstart-0.6.5-10.el6.x86_64

找了台机器,确实是upstart没错。
Reply View the author
avatar
纯洁的老污师
deepin
2016-12-13 02:07
#11
https://bbs.deepin.org/post/132826
CentOS6不是upstart,或者说并不像ubuntu那样完全使用upstart(ubuntu16.04版本使用systemd)。CentOS6使用的 ...

看11楼,从软件包查询,init 确实是由upstart包安装。
Reply View the author
avatar
knightlu
deepin
2016-12-15 04:53
#12
https://bbs.deepin.org/post/132826
$ rpm -qa | grep upstart
upstart-0.6.5-10.el6.x86_64

看来我是跟centos 5弄混了。
Reply View the author
avatar
knightlu
deepin
2017-04-20 19:12
#13
https://bbs.deepin.org/post/132826
看11楼,从软件包查询,init 确实是由upstart包安装。

今天找了台centos6看下,确实是用的upstart,但是它为了兼容service服务管理,所有的过程还是通过upstart调动sysv脚本完成的,所以centos6启动并没快多少,老版本的ubuntu才是真正发挥了upstart的特性。
Reply View the author