デーモンと言っても某閣下の事ではない。サーバのバックグラウンドで常駐して稼動するプログラムの事。そのデーモンを 今までまったく管理して無かったので見直してみた。
当drakgrayサーバ(自宅サーバ)と テスト中andセットアップ途中のtest-c1サーバで 稼働中のデーモンを調べてみた。
darkgrayサーバ - 自宅サーバとして稼働中 (全て表示すると大量になるので 現在有効なものだけ表示)
[code]
[root@ ]# chkconfig –list | grep 3:on
abrt-ccpp 0:off 1:off 2:off 3:on 4:off 5:on 6:off
abrt-oops 0:off 1:off 2:off 3:on 4:off 5:on 6:off
abrtd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
amavisd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
blk-availability 0:off 1:on 2:on 3:on 4:on 5:on 6:off
clamd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
dovecot 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
irqbalance 0:off 1:off 2:off 3:on 4:on 5:on 6:off
kdump 0:off 1:off 2:off 3:on 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off
mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
saslauthd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
spamassassin 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
yum-cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[/code]
test-c1サーバ - ミニマルインストール、セットアップの初期状態 (こちらは全て表示)
[code]
[gain@test-c1 ~]$ sudo chkconfig –list
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
blk-availability 0:off 1:on 2:on 3:on 4:on 5:on 6:off
clamd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iscsi 0:off 1:off 2:off 3:on 4:on 5:on 6:off
iscsid 0:off 1:off 2:off 3:on 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off
mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off
multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
ntpdate 0:off 1:off 2:off 3:off 4:off 5:off 6:off
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
restorecond 0:off 1:off 2:off 3:off 4:off 5:off 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
yum-cron 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[gain@test-c1 ~]$
[/code]
なんだか数が違うな・・・ これからセットアップして行く毎に増えてくのかな? 不要なデーモンはメモリを無駄に消費し 性能低下の要因にもなるので、デーモンの機能を見直してみる。ここでは 全てを一編に片付けるのは無理なので 目に付いた物を幾つか取り上げる。
・acpid
電源を管理し、省電力のための休止状態をサポートするデーモン。サーバとして24時間稼動してるので不要。
・auditd
audit.logを吐き出す。SELinuxが有効な状況においては必須。SELinuxなんていらねーよって人には不要。
・ip6tables
ipv6を停止してるので不要だが・・・ 近い内に回線工事があって 回線工事後はISPから自宅まではipv6が通じるらしい。内容はまだ全然分からないけど ipv6に関連する諸々をどのように設定するのか そろそろ検討を始める必要あり。
・iscsi iscsid
サーバ間をscsiプロトコルで繋ぐ? 面白そうな機能ではあるが まったく内容が理解できていないand今の所利用価値が無いので不要。
・mdmonitor
ソフトウエアRAIDをモニターする。ソフトウェアRAIDは使っていないので不要。
・netfs
NFSのクライアントデーモン。NFSを使う予定は無いので不要。
とりあえず簡単にこんな所かな・・ 今後はwikiで取り上げて行く予定。