Skip to content

Instantly share code, notes, and snippets.

@bububa
Created February 27, 2013 08:18
Show Gist options
  • Save bububa/5046199 to your computer and use it in GitHub Desktop.
Save bububa/5046199 to your computer and use it in GitHub Desktop.
Debian管理启动项
通过ls /etc/init.d/以及ls /etc/rc?.d来查看当前的初始化服务。
update-rc.d -f mysqld remove命令将mysqld从启动项里删除
debian:/etc/init.d# cat ifup #ifup 命令
#!/bin/bash
ifup eth0
debian:/etc/init.d# chmod a+x ifup #添加可执行权限
debian:/etc/init.d# update-rc.d ifup defaults #添加启动项目
首先采用rcconf 管理
apt-get install rcconf
在/etc/init.d/建立启动脚本 如: vi start
在start 中写入启动命名 如自动拨号:pon dsl-provider
chmod 700 start
然后rcconf 选择它
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment