#navi(../)
* Ubuntuで各ジョブの状態一覧を表示する方法・initctl [#i30a4672]
SysVinitからUpstartに変更され、ジョブの一覧を確認する場合、initctlコマンドを使用すると便利です。~
実際にUbuntuでinitctlコマンドを使用して実行した結果などを以下に記します。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* initctl listを実行してみる [#id8538c2]
initctlコマンドにlist引数をつけて実行すると、各ジョブの状態一覧が表示されます。~
initctl list
以下、実際にinitctl listコマンドを実行したときの出力です。
sakura@ubuntu:~$ initctl list
mountall-net stop/waiting
passwd stop/waiting
rc stop/waiting
rsyslog start/running, process 428
screen-cleanup stop/waiting
tty4 start/running, process 903
udev start/running, process 349
upstart-udev-bridge start/running, process 342
ureadahead-other stop/waiting
whoopsie start/running, process 959
apport start/running
console-setup stop/waiting
hwclock-save stop/waiting
irqbalance stop/waiting
plymouth-log stop/waiting
tty5 start/running, process 910
failsafe stop/waiting
<snip>
plymouth-splash stop/waiting
plymouth-upstart-bridge stop/waiting
tty1 start/running, process 988
udevmonitor stop/waiting
dmesg stop/waiting
network-interface-security (network-interface/eth1) start/running
network-interface-security (network-interface/eth0) start/running
network-interface-security (network-interface/lo) start/running
network-interface-security (networking) start/running
networking stop/waiting
procps stop/waiting
tty6 start/running, process 923
network-interface-container stop/waiting
ureadahead stop/waiting
以上、initctlコマンドによる各ジョブの状態一覧を確認する方法でした。
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)