debian6开机启动脚本的方法
来源:互联网 发布:sas mac版安装教程 编辑:程序博客网 时间:2024/06/06 00:02
在debian6中,加入开机启动脚本的方法与debian5不同了,直接做符号链接到runlevel已经不起作用了,提示缺少LSB信息,并且用insserv来替代update-rc.d:
root@14:/etc/rc2.d# update-rc.d -n php_fastcgi.sh defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K02php_fastcgi' missing LSB tags and overrides
insserv: warning: script 'K01php_fastcgi.sh' missing LSB tags and overrides
insserv: warning: script 'php_fastcgi.sh' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (empty) of script `php_fastcgi.sh' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0) of script `php_fastcgi.sh' overwrites defaults (0 1 6).
insserv: dryrun, not creating .depend.boot, .depend.start, and .depend.stop
# insserv /etc/init.d/php_fastcgi.sh
insserv: warning: script 'K02php_fastcgi' missing LSB tags and overrides
insserv: warning: script 'php_fastcgi.sh' missing LSB tags and overrides
debian6中将脚本加入到开机启动的方法:
在脚本中加入LSB描述信息。
root@14:~# more /etc/init.d/php_fastcgi.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: php_fastcgi.sh
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the php_fastcgi daemon
# Description: starts php_fastcgi using start-stop-daemon
### END INIT INFO
安装启动脚本到system init script。
root@14:~# insserv -v -d /etc/init.d/php_fastcgi.sh
重启机器试试吧。
- debian6开机启动脚本的方法
- debian6启动脚本详解
- Centos7开机启动自己的脚本的方法
- Centos7开机启动自己的脚本的方法
- Ubuntu 创建开机自启动脚本的方法
- Ubuntu下添加开机启动脚本的方法
- Linux下开机自启动脚本的不同方法
- Ubuntu 创建开机自启动脚本的方法
- Ubuntu 创建开机自启动脚本的方法
- Ubuntu python 创建开机自启动脚本的方法
- Ubuntu 创建开机自启动脚本的方法
- Ubuntu 创建开机自启动脚本的方法
- Ubuntu 创建开机自启动脚本的方法
- Ubuntu 创建开机自启动脚本的方法
- 树莓派开机启动python脚本的另一种方法
- Ubuntu 创建开机自启动脚本的方法
- Ubuntu 16.04添加开机启动脚本的方法
- Ubuntu 14.04设置开机启动脚本的方法
- splite
- TestRecoder For WatiN 重构与优化手记
- perl map
- java concurrent 探秘(经典的线程个数,是否完成等的控制)
- 新买的HTC G3 进入fastboot 模式
- debian6开机启动脚本的方法
- 优秀的软件企业为何倒下?
- 读书笔记 <Bootstrap Yourself with Linux USB Stack>
- Cocoachina教学:Core Animation入门
- 项目经理的工具箱---走出软件作坊:三五个人十来条枪 如何成为开发正规军
- Android 资料整理
- js创建对象
- 新手学堂:嵌入式Linux操作系统学习规划
- Ubuntu下SVN的安装和相关知识