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
  • 相关阅读:
    Outlook 2003 最小化到系统托盘方法 [转]
    Sql Server 得到当月第一天
    禁止用户对系统数据库表的SELECT权限
    解决IE二级链接无法打开故障
    服务器安全设置全攻略
    使用TSQL脚本在SQL Server创建角色,并给角色赋予相应权限
    Redis内部阻塞式操作有哪些?
    UML和OO
    PetShop 4 详解(转载)
    Blog开通了
  • 原文地址:https://www.cnblogs.com/1327/p/1515851.html
Copyright © 2011-2022 走看看