Debian的rcconf可以出現選單一次選擇?我目前還沒找到,
不過Gentoo default runlevel會跑哪些東西
基本上可以在這看到
Code: Select all
# ls -al /etc/runlevels/default/
total 8
drwxr-xr-x 2 root root 4096 May 7 16:47 .
drwxr-xr-x 5 root root 4096 Apr 9 08:31 ..
lrwxrwxrwx 1 root root 17 May 6 18:47 local -> /etc/init.d/local
lrwxrwxrwx 1 root root 20 May 6 22:02 net.eth0 -> /etc/init.d/net.eth0
lrwxrwxrwx 1 root root 20 May 6 18:47 netmount -> /etc/init.d/netmount
lrwxrwxrwx 1 root root 18 May 6 22:22 rsyncd -> /etc/init.d/rsyncd
lrwxrwxrwx 1 root root 16 May 6 22:03 sshd -> /etc/init.d/sshd
lrwxrwxrwx 1 root root 21 May 7 16:47 syslog-ng -> /etc/init.d/syslog-ng
lrwxrwxrwx 1 root root 17 May 7 16:40 vcron -> /etc/init.d/vcron
要新增加的話,有個trick
先看一下ls /etc/init.d/
Code: Select all
# ls
apache2 depscan.sh keymaps netmount runscript.sh urandom
bootmisc functions.sh local nscd samba vcron
checkfs gpm localmount numlock serial winbind
checkroot halt.sh modules postfix shutdown.sh xdm
clock hdparm net.eth0 reboot.sh sshd xfs
consolefont hostname net.lo rmnologin switch xinetd
crypto-loop inetd net.ppp0 rsyncd syslog-ng
Code: Select all
for i in sshd postfix samba vcron rsyncd syslg-ng xinetd
do
rc-update add $i default
done
缺點只是沒有ncurses or dialog box讓你check,
但要寫也應該很簡單。