ivaneeo's blog

          自由的力量,自由的生活。

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

          常用鏈接

          留言簿(34)

          我參與的團隊

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          在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

          重啟機器試試吧。

          posted on 2013-09-29 14:45 ivaneeo 閱讀(4823) 評論(0)  編輯  收藏 所屬分類: debian-企鵝中最像牛
          主站蜘蛛池模板: 乐业县| 濮阳市| 汉中市| 华蓥市| 吉首市| 资源县| 伊金霍洛旗| 盘锦市| 深圳市| 印江| 双牌县| 青川县| 仪陇县| 乌恰县| 环江| 祁连县| 苗栗县| 石柱| 来安县| 河南省| 宁南县| 明溪县| 长岭县| 阿瓦提县| 牟定县| 项城市| 永修县| 朝阳市| 扶绥县| 洪洞县| 南郑县| 夏津县| 奇台县| 汕尾市| 临安市| 伊川县| 高要市| 南华县| 临泽县| 巩留县| 石河子市|