2008/09/26

[ LOS ] chkconfig for Ubuntu sysv-rc-conf

在 CentOS 中有 chkconfig 工具更改程式 Run Level 而在 Ubuntu 中可用 sysv-rc-conf 這個工具。

$ sudo apt-get install sysv-rc-conf  # 安裝 sysv-rc-conf

$ sudo sysv-rc-conf # 直接執行 sysv-rc-conf command-lin 圖形介面



$ sysv-rc-conf --list | grep ssh # 查看 ssh run level
ssh 1:off 2:off 3:off 4:off 5:off

$ sudo sysv-rc-conf --level 35 ssh off    # 關閉 ssh 3 及 5 的 run level

$ sudo sysv-rc-conf atd off # 關閉 atd run level

$ sysv-rc-conf --list | grep atd # 查看 atd run level
atd 1:off 2:off 3:off 4:off 5:off

$ sudo sysv-rc-conf atd on # 開啟 atd run level

$ sysv-rc-conf --list | grep atd # 查看 atd run level
atd 1:off 2:on 3:on 4:on 5:on

Reference :
http://sysv-rc-conf.sourceforge.net

0 意見: