通过上一篇文章http://www.cnblogs.com/EasonJim/p/7168216.html可以大概了解到Sysvinit的历史。

其实在自定义服务上,使用Sysvinit是最简单的,本身就是一个Shell脚本,只要按照基本的格式写,然后放在/etc/init.d文件夹下即可。然后通过update-rc.d配置开机启动。也可以直接使用sysv-rc-conf工具进行操作。操作完之后会在ect/rc*.d文件夹体现,S为开始,K为结束。

系统提供的说明文档,在/etc/init.d/README

这个是GitHub上已经提供的模板,直接套上去就可以使用:https://gist.github.com/naholyr/4275302

其它参考:

http://czmmiao.iteye.com/blog/1786606

http://blog.chinaunix.net/uid-27875-id-5749890.html

http://blog.csdn.net/fenglailea/article/details/45535833

http://blog.csdn.net/tmt123421/article/details/53610334

http://blog.sina.com.cn/s/blog_484d87770102uxz6.html

相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2022-01-21
  • 2021-09-23
  • 2021-09-29
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2022-01-19
  • 2021-09-27
  • 2021-05-02
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
相关资源
相似解决方案