Ubuntu 11.10 サービス管理をインストール方法

<Redhat&Ubuntuのサービス管理>
Redhat系:chkconfig
Ubuntu系:sysv-rc-conf

<Ubuntuのサービス管理パケージインストール>
# apt-get install sysv-rc-conf
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libcurses-perl libcurses-ui-perl libterm-readkey-perl
The following NEW packages will be installed:
libcurses-perl libcurses-ui-perl libterm-readkey-perl sysv-rc-conf
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 420 kB of archives.
After this operation, 1,577 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://jp.archive.ubuntu.com/ubuntu/ oneiric/universe libcurses-perl amd64 1.28-1build1 [132 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu/ oneiric/main libterm-readkey-perl amd64 2.30-4build2 [31.2 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu/ oneiric/universe libcurses-ui-perl all 0.9607-2 [232 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu/ oneiric/universe sysv-rc-conf all 0.99-6 [24.2 kB]
Fetched 420 kB in 0s (558 kB/s)
Selecting previously deselected package libcurses-perl.
(Reading database … 54650 files and directories currently installed.)
Unpacking libcurses-perl (from …/libcurses-perl_1.28-1build1_amd64.deb) …
Selecting previously deselected package libterm-readkey-perl.
Unpacking libterm-readkey-perl (from …/libterm-readkey-perl_2.30-4build2_amd64.deb) …
Selecting previously deselected package libcurses-ui-perl.
Unpacking libcurses-ui-perl (from …/libcurses-ui-perl_0.9607-2_all.deb) …
Selecting previously deselected package sysv-rc-conf.
Unpacking sysv-rc-conf (from …/sysv-rc-conf_0.99-6_all.deb) …
Processing triggers for man-db …
Setting up libcurses-perl (1.28-1build1) …
Setting up libterm-readkey-perl (2.30-4build2) …
Setting up libcurses-ui-perl (0.9607-2) …
Setting up sysv-rc-conf (0.99-6) …

<Ubuntuのサービス管理の使用例>
# sysv-rc-conf –list apache2
apache2 0:off 1:off 2:on 3:on 4:on 5:on 6:off

# sysv-rc-conf apache2 off
# sysv-rc-conf –list apache2
apache2 0:off 1:off 2:off 3:off 4:off 5:off 6:off

# sysv-rc-conf netatalk off
# sysv-rc-conf –list netatalk
netatalk 1:off 2:off 3:off 4:off 5:off

Share Button

コメントを残す


7 + = 12

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>