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

相关文章:

  • 2021-06-18
  • 2021-10-07
  • 2022-12-23
  • 2021-10-11
  • 2021-12-22
  • 2021-07-25
  • 2022-03-07
  • 2022-12-23
猜你喜欢
  • 2021-06-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案