ivaneeo's blog

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

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

          在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-企鵝中最像牛
          主站蜘蛛池模板: 巴马| 阳城县| 察雅县| 巫溪县| 永登县| 句容市| 长白| 维西| 寿宁县| 鹰潭市| 阳新县| 巴中市| 合山市| 开封县| 海阳市| 上犹县| 鄂托克前旗| 馆陶县| 渭南市| 武功县| 三门峡市| 瑞安市| 东乌珠穆沁旗| 乌兰浩特市| 丰镇市| 石家庄市| 汾阳市| 融水| 东乌珠穆沁旗| 玉田县| 绍兴市| 兴义市| 阜平县| 星子县| 岳普湖县| 龙海市| 扬中市| 修水县| 宁国市| 来凤县| 剑阁县|