シャットダウンの予約

検証環境

CentOS release 5.6 (Final)



シャットダウンの予約

19:50にサーバーをシャットダウンします。シャットダウンを予約すると、即時、すべてのログインユーザーに19:50になるとサーバーがシャットダウンされる旨が通知されます。

# nohup shutdown -h 19:50 &
[1] 1772
# nohup: appending output to `nohup.out'

Broadcast message from root (Tue Jun 21 19:42:27 2011):

The system is going DOWN for system halt in 8 minutes!

以降、1分ごとに以下のメッセージが通知されます。

Broadcast message from root (Wed Aug  3 10:46:36 2011):

The system is going DOWN for system halt in 7 minutes!