debian 开机启动脚本_ubuntu 自启动脚本
在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
重启机器试试吧。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/180417.html原文链接:https://javaforall.cn
相关文章
- ubuntu降低内核版本后无网络_Ubuntu换内核为旧版
- Ubuntu虚拟显示器_vmware安装ubuntu屏幕太小
- ldd命令 ubuntu_Linux ldd 命令 command not found ldd 命令详解 ldd 命令未找到 ldd 命令安装 – CommandNotFound ⚡️ 坑否…[通俗易
- Ubuntu 16.04 更新源失败问题
- Ubuntu(小名乌班图)的安装顺便附带VMware的安装教程,以及VM的激活密钥[通俗易懂]
- Ubuntu修改用户名和密码后无法登录_ubuntu默认用户名
- Ubuntu操作指令
- Ubuntu系统安装
- 【错误记录】Ubuntu 下 VSCode 编译报错 ( 无法生成和调试,因为活动文件不是 C 或 C++ 源文件。终端进程启动失败(退出代码: -1)。终端将被任务重用,按任意键关闭。 )
- 解锁Ubuntu:开启Linux旅程(linux的ubuntu)
- TermKit的新一代Mac终端,在Ubuntu 11.04 轻松安装TermKit
- 如何立即从19.04升级到Ubuntu 19.10
- Ubuntu系统如何重启MySQL服务(ubuntu重启mysql)
- 叫做ubuntu揭秘Linux的分支Ubuntu(linux的分支)
- Ubuntu上安装MongoDB的快速指南(ubuntu安装mongodb)
- Ubuntu探索Linux分支Ubuntu的神奇之处(linux的分支)
- Ubuntu 14.04 默认支持 SSD TRIM 功能
- 如何在 Ubuntu 18.04 中启动到救援模式或紧急模式
- Canonical 号召开发者向 Ubuntu 融合设计发起贡献
- Ubuntu 17.04(Zesty Zapus)正式发布,可以下载使用了
- Dooble是用Qt4写的另外一款WebKit浏览器,主要在保护用户隐私方面取胜。虽然它和其他浏览器提供的安全性相差不打,但是也有一些特有的属性比如内含的桌面等。Dooble桌面使得用户可以在增加桌面背景的同时添加应用程序启动,除了从软件包管理器安装外,还可以使用Ubuntu 10.10版本0.07安装,此时的Dooble版本为1.14,同时还要有Qt编码工具如qt4-qmake等。
- Ubuntu轻松卸载MySQL,教你步骤全掌握(ubuntu卸载mysql)
- ubuntu取消pppoe启动时自动拔号的设置方法
- ubuntu系统中nginx启动脚本