Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

shutdown(8) [minix man page]

SHUTDOWN(8)						      System Manager's Manual						       SHUTDOWN(8)

shutdown - graciously close the system down SYNOPSIS
shutdown [-hrRmk] [-x code] [time-specification [message]] DESCRIPTION
Shutdown is a program which allows a system operator to close down the system in an nice way. Shutdown informs the users why and when the system is going down. This warning is issued 10 minutes before shutdown time and every minute in the last 5 minutes. At this time (5 min- utes), shutdown creates a file /etc/nologin to prevent new users from logging in. Shutdown keeps a logfile of shutdowns. Every shutdown is registered in /usr/adm/wtmp, if this file exists. After these actions, a call is done to reboot(2) which actually brings the system down. Time-specification may be something like 15:00, 15.00, +15, or now for a shutdown at 3pm (twice), 15 minutes from now, or immediately. The message may be used to describe why the system is going down, it may also be typed on standard input with the -m option. OPTIONS
-h This flag prevents the system from rebooting after the shutdown. The system can now be powered off. This is the default. -r This flag indicates that the system should reboot after shutting down. -R Reboot the system by resetting it. Normally the kernel will try to return to the Boot Monitor. With -R the system will receive a hardware reset. -x code Halt the system and let the Monitor execute the given code as if typed at the monitor prompt. You can for instance use -x 'boot hd0' as a very fast way to reboot "from the top." -m Allows the operator to type a shutdown message on standard input, that will be added to the messages displayed on all terminals. -k This option gives the possibility of terminating an already started shutdown. This is only possible if shutdown time has not yet arrived. -C Check if the system crashed. This option is not used at shutdown time, but at reboot time. It tells if the file systems should be checked by testing if the last entry in the wtmp file is a shutdown entry. (A crude replacement for a file system clean flag.) FILES
/usr/adm/wtmp, /etc/nologin, /usr/adm/authlog SEE ALSO
reboot(2), wall(1), halt(8), boot(8). AUTHOR
Edvard Tuinder (v892231@si.hhs.NL) SHUTDOWN(8)

Check Out this Related Man Page

shutdown(1B)					     SunOS/BSD Compatibility Package Commands					      shutdown(1B)

shutdown - close down the system at a given time SYNOPSIS
/usr/ucb/shutdown [-fhknr] time [warning-message...] DESCRIPTION
shutdown provides an automated procedure to notify users when the system is to be shut down. time specifies when shutdown will bring the system down; it may be the word now (indicating an immediate shutdown), or it may specify a future time in one of two formats: +number and hour:min. The first form brings the system down in number minutes, and the second brings the system down at the time of day indicated in 24-hour notation. At intervals that get closer as the apocalypse approaches, warning messages are displayed at terminals of all logged-in users, and of users who have remote mounts on that machine. At shutdown time a message is written to the system log daemon, syslogd(1M), containing the time of shutdown, the instigator of the shut- down, and the reason. Then a terminate signal is sent to init, which brings the system down to single-user mode. OPTIONS
As an alternative to the above procedure, these options can be specified: -f Arrange, in the manner of fastboot(1B), that when the system is rebooted, the file systems will not be checked. -h Execute halt(1M). -k Simulate shutdown of the system. Do not actually shut down the system. -n Prevent the normal sync(2) before stopping. -r Execute reboot(1M). FILES
/etc/rmtab remote mounted file system table ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
fastboot(1B), login(1), halt(1M), reboot(1M), syslogd(1M), sync(2), rmtab(4), attributes(5) NOTES
Only allows you to bring the system down between now and 23:59 if you use the absolute time for shutdown. SunOS 5.10 11 Oct 1994 shutdown(1B)
Man Page