Solaris のシステム管理

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

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

# who
kryten     console      May  7 08:28
rimmer     pts/1        May  7 08:29    (starbug)
pmorph     pts/2        May  7 08:30    (bluemidget)
(ログインしているユーザーにメールを送る)
# shutdown -i0 -g300 -yShutdown started.    Wed May  7 09:49:01 PDT 1997
Broadcast Message from root (console) on pluto Wed May  7 09:46:58...  
The system will be shut down in 3 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 にしてすべてのデバイスの電源を落とす場合は、「すべてのデバイスの電源を落とす方法」を参照してください。