DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"
sysv-rc-conf が Red Hat 系の chkconfig に該当する
sysv-rc-conf - SysV init runlevel configuration tool for the terminal
root@arizona:~# apt-get install sysv-rc-conf
root@arizona:~# sysv-rc-conf --list
acpi-support 1:off 2:on 3:on 4:on 5:on
acpid
alsa-mixer-s
anacron
apparmor S:on
apport
atd
root@arizona:~# sysv-rc-conf bluetooth off
root@arizona:~# sysv-rc-conf --list | grep blue
bluetooth 0:off 1:off 2:off 3:off 4:off 5:off 6:off
- chkconfig のパッケージもある
root@arizona:~# apt-cache search chkconfig
エラーが。。
root@arizona:~# chkconfig cups off
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
The script you are attempting to invoke has been converted to an Upstart
insserv: exiting now without changing boot order!
/sbin/insserv failed, exit code 1
exit code 1 で終了してるので、cups は off になってない
root@arizona:~# chkconfig --list | grep cups
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
root@arizona:~# sysv-rc-conf --list | grep cups
cups 1:off 2:on 3:on 4:on 5:on
ググると、Ubuntu で chkconfig で off にできーんってでてくるので、chkconfig ではなく、sysv-rc-conf を使ったほうがよさげ。
root@arizona:~# sysv-rc-conf cups off
root@arizona:~# sysv-rc-conf --list | grep cups
cups 1:off 2:off 3:off 4:off 5:off
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.