不要なサービスの停止

Last-modified: Tue, 07 Jan 2014 23:49:59 JST (3755d)
Top > 不要なサービスの停止

不要なサービスの停止

  1. rootになる。
    sudo su -
  2. chkconfigライクなsysv-rc-confを入れる
    apt-get install sysv-rc-conf
  3. RunLevel 3で自動起動設定になっているものをピックアップ。
    sysv-rc-conf --list | grep 3:on
    • 私の環境ではこんな感じになった。
      dns-clean    1:on       2:on    3:on    4:on    5:on
      grub-common  2:on       3:on    4:on    5:on
      ondemand     2:on       3:on    4:on    5:on
      rc.local     2:on       3:on    4:on    5:on
      rsync        2:on       3:on    4:on    5:on
      sudo         2:on       3:on    4:on    5:on
  4. 不要なサービスをザクザク止める。
    sysv-rc-conf dns-clean off
    sysv-rc-conf pppd-dns off
    sysv-rc-conf rsync off
  5. upstartで起動しているジョブを出す。
    initctl list | grep start/ | sort
    • 私の環境ではこんな感じになった。
      acpid start/running, process 856
      apport start/running
      atd start/running, process 863
      cron start/running, process 862
      ~~~省略~~~
      ssh start/running, process 749
      tty1 start/running, process 902
      tty2 start/running, process 846
      tty3 start/running, process 850
      tty4 start/running, process 832
      tty5 start/running, process 839
      tty6 start/running, process 853
      udev start/running, process 385
      ufw start/running
      upstart-socket-bridge start/running, process 668
      upstart-udev-bridge start/running, process 381
      whoopsie start/running, process 906
  6. いらないジョブを起動しないようにします。
    • クラッシュレポート関連
      • apport
      • whoopsie
    • ttyそんなにいらない
      • tty3
      • tty4
      • tty5
      • tty6
        /etc/init/配下にそれぞれスクリプトが入っているので、その中にある
        start on runlevelの箇所をコメントアウトします。

Counter: 520, today: 3, yesterday: 1

このページの参照回数は、520です。