Fedora Core 500の技
Valid XHTML 1.0!
正当なCSSです!

TOP > Linux > Fedoraの技 > 001-100 > 041

shutdownをキャンセルしたい

shutdownを実行後にキャンセルすることが可能です。ただし停止または再起動プロセスに入ってからではキャンセルできません。

shutdownを直接した画面であれば、Ctrl-cでキャンセルとなります。

# shutdown -r +5

Broadcast message from root (pts/0) (Fri Mar 25 20:47:19 2005):

The system is going DOWN for reboot in 5 minutes!
ここでCtrl-cを実行
Shutdown cancelled.

コマンドをバックグラウンドで実行したか、別の画面で実行した場合は"-c"オプションを利用します。

# ps ax | grep shutdown
4266 pts/0  S   0:00 shutdown -r +5 プロセスがある状態

# shutdown -c

Shutdown cancelled.
[1]+ Done          shutdown -r +5

2005-12-03 作成