snake_l 发表于 2015-11-13 15:39:41

apache安装问题:update-rc.d: using dependency based boot sequencing

  update-rc.d: using dependency based boot sequencing
  解决方法:
  在debian6中,加入开机启动脚本的方法与debian5不同了,直接做符号链接到runlevel已经不起作用了,提示缺少LSB信息,并且用insserv来替代update-rc.d:


In Debian releases prior to 6.0, a service could be added with update-rc.d:


update-rc.d mydaemon defaults

Starting with Debian 6.0, the insserv command is used instead, if dependency-based booting is enabled:


insserv mydaemon
  


  如果没有insserv,安装方法见:


  

aptitude install insserv
  


  另参考文章
http://blog.iyunv.com/xuyaqun/article/details/6968658



How to LSBize an Init Script
  
Add a block like this in the init.d script:


### BEGIN INIT INFO
# Provides:          scriptname
# Required-Start:    $remote_fs $syslog
# Required-Stop:   $remote_fs $syslog
# Default-Start:   2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

The block shown above has a special rigid format delimited by the lines


### BEGIN INIT INFO
### END INIT INFO

where all trailing spaces shall be ignored. On the other hand, all lines inside the block shall be of the form

# {keyword}: arg1
and begin with a hash character '#' in the first column followed by one single space, except for the lines following the Description keyword.

版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: apache安装问题:update-rc.d: using dependency based boot sequencing