[问题]守护进程的启动脚本

sh/bash/dash/ksh/zsh等Shell脚本
回复
eyesmart
帖子: 10
注册时间: 2008-03-07 11:20

[问题]守护进程的启动脚本

#1

帖子 eyesmart » 2008-06-24 10:20

我写了个守护进程,想开机自动运行,查了下资料,并且我发现在/etc/目录下有rc0.d rc1.d...... ,这些文件夹里面都是些什么内容,我应该把脚本写在哪儿? 谢谢了
头像
ebok
帖子: 852
注册时间: 2008-02-15 0:09

#2

帖子 ebok » 2008-06-24 10:43

放/etc/init.d/里,再建一个连接文件到/etc/rc2.d/
文件名应为Sxxabc,xx是数字,参考/etc/rc2.d/里的文件名。
不知有没写错。
Somebody think they are full of niubility, so they play a zhuangbility, but only reflect their shability.
eyesmart
帖子: 10
注册时间: 2008-03-07 11:20

#3

帖子 eyesmart » 2008-06-25 9:21

谢谢了,能把ubuntu启动守护进程的具体过程是什么样的?
哪位大虾能说一说,那些脚本之间的关系是什么?
回复