zoukankan      html  css  js  c++  java
  • debian sarge 下 updaterc.d 详解

    LocalDomain:/etc/init.d# update-rc.d bittorrent start 20 1 . stop 20 0 2 3 4 5 6 .
     System startup links for /etc/init.d/bittorrent already exist.
    LocalDomain:/etc/init.d# cd /etc/rc3.d

    怎么停止启动 bittorrent ???

    update-rc.d命令,是用来自动的升级System V类型初始化脚本,简单的讲就是,哪些东西是你想要系统在引导初始化的时候运行的,哪些是希望在关机或重启时停止的,可以用它来帮你设置。这些脚本的连接位于/etc/rcn.d/LnName,对应脚本位于/etc/init.d/Script-name.

    1、设置指定启动顺序、指定运行级别的启动项:
    update-rc.d <service> start <order> <runlevels>
    2、设置在指定运行级中,按指定顺序停止:
    update-rc.d <service> stop <order> <runlevels>
    3、从所有的运行级别中删除指定的启动项:
    update-rc.d -f <script-name> remove

    例如:
    update-rc.d script-name start 90 1 2 3 4 5 . stop 52 0 6 .
    start 90 1 2 3 4 5 . : 表示在1、2、3、4、5这五个运行级别中,按先后顺序,由小到大,第90个开始运行这个脚本。
    stop 52 0 6 . :表示在0、6这两个运行级别中,按照先后顺序,由小到大,第52个停止这个脚本的运行。

    #/etc/init.d/portmap stop
    #update-rc.d -f portmap remove
    or use webmin remove it


    #update-rc.d -f portmap remove
    |
    \/
    #update-rc.d portmap start 55 1 . stop 55 0 2 3 4 5 6 .
    make portmap only run level at 1.
    #man update-rc.d
  • 相关阅读:
    嵌入式Linux驱动学习之路(十九)触摸屏驱动、tslib测试
    GNU make使用变量⑤变量的引用、定义等
    Java并发——核心理论
    Java并发——volatile的原理
    Java线程与Linux内核线程的映射关系
    Reactor模式详解
    Java实现二分查找算法
    Dubbo协议与连接控制
    linux 域名
    package报错
  • 原文地址:https://www.cnblogs.com/1327/p/1515851.html
Copyright © 2011-2022 走看看