サービスの管理2015/05/01 |
[1] | サービスの一覧を表示します。 |
# 現在起動しているサービスの一覧を表示 (--all を付けると全サービスがリストされる) root@dlp:~# systemctl -t service UNIT LOAD ACTIVE SUB DESCRIPTION acpid.service loaded active running ACPI event daemon atd.service loaded active running Deferred execution scheduler console-setup.service loaded active exited LSB: Set console font and keymap cron.service loaded active running Regular background program processing daemon dbus.service loaded active running D-Bus System Message Bus ... ... ... systemd-user-sessions.service loaded active exited Permit User Sessions udev-finish.service loaded active exited Copy rules generated while the root was ro LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 35 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'. # サービスの起動設定の一覧を表示 root@dlp:~# systemctl list-unit-files -t service UNIT FILE STATE acpid.service disabled atd.service enabled autovt@.service disabled bootlogd.service masked bootlogs.service masked ... ... ... urandom.service static user@.service static x11-common.service masked 128 unit files listed. |
[2] | もし自身の環境で不要なサービスがあれば、以下のようにして停止と自動起動のオフ設定をします。以下の例では Atd を停止に設定しています。なお、サービス名末尾の [.service] は省略可能です。 |
root@dlp:~# systemctl stop atd root@dlp:~# systemctl disable atd |
Sponsored Link |