safeshutdown

safeshutdown

safeshutdown is a tool which is replaced with shutdown command. It requires user to input the hostname before shutdown. As a result, it brings the system down safer than shutdown command.

If you manage some UNIX server via a remote console, you may login more than one server. For example, you login hostA via hostB via hostC. You may mistake where you login and do shutdown not hostB but hostC.

If you use safeshutdown instead of shutdown usually, you can prevent it.... maybe.

Usage

Work as root.

  • Put safeshutdown to the directory in $PATH
  • chmod 755 safeshutdown
  • Others are the same as shutdown command. For example, you reboot immediately, you do as follows.
#safeshutdown -r now

Notes

I designed safeshutdown to reduce human-error with shutdown command. But it is NOT complete. You should make efforts not to make some other mistakes.

License

Copyright (C) 2002 Masao Mutoh <mutoh@highwhay.ne.jp>

This program is free software. You can distribute/modify this program under the terms of the GNU Lesser General Public License version 2 or later. ChangeLog

ChangeLog

2002-02-18 Masao Mutoh <mutoh@highway.ne.jp>
  • Add English document.
  • version 1.1 is released.
2002-02-17 Masao Mutoh <mutoh@highway.ne.jp>
  • version 1.0 is released.
Last modified:2004/04/28 01:38:56
Keyword(s):
References:[YotaLab Storage]