Solaris のシステム管理 (第 1 巻)

例 - SPARC システムを実行レベル 0 にする

次の例では、shutdown コマンドを使用して、SPARC システムを 5 分後に実行レベル 0 にしています。確認用プロンプトが表示されないように -y オプションを指定しています。


# who
kryten     console      Jun 10 14:22
rimmer     pts/1        Jun 10 14:23    (starbug)
pmorph     pts/2        Jun 10 14:24    (bluemidget)
(ログインしているユーザーにメールを送る)
# shutdown -i0 -g300 -y
Shutdown started.    Wed Jun 10 14:30:32 MDT 1998
Broadcast Message from root (console) on pluto Wed Jun 10 14:30:32...
The system will be shut down in 5 minutes
.
.
.
INIT: New run level: 0
The system is coming down.  Please wait.
.
.
.
The system is down.
syncing file systems... [11] [9] [5] done
Program terminated
Type  help  for more information
ok 

システムを実行レベル 0 にしてすべてのデバイスの電源を落とす場合は、「すべてのデバイスの電源を落とす方法」を参照してください。