标 题: 和BSD兼容的shutdown 发信站: BBS 水木清华站 (Thu Dec 23 15:55:47 1999) SunOS/BSD Compatibility Package Commands shutdown(1B) SunOS/BSD 兼容命令包. NAME 名称 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 indi- cated in 24-hour notation. 当系统将要关毕前,shutdown提供一个自动的进程对用户进行提示. 在关毕系统时要求提供系统能存活的时间.时间可以指定为now(意思是 立即关毕)或者可以用下面两种格式的一种.+number 和hour:min. 第一种格式会指定在未来的number分种后关毕系统后者指定当天 准确的时间. 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. 在关毕系统前远程用户和对该机器有mount操作的用户将每隔一段 时间就会得到警告信息. At shutdown time a message is written to the system log dae- mon, syslogd(1M), containing the time of shutdown, the instigator of the shutdown, and the reason. Then a ter- minate signal is sent to init, which brings the system down to single-user mode. 关毕系统时将会向系统的登陆守护程序发一个信息,信息中包括系统关毕时间, 执行者,和原因.然后一个中断信号将发给init,init将会把系统重新起动到 单用户模式. 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). 执行halt(1M). -k Simulate shutdown of the system. Do not actually shut down the system. 模拟关机.不真正动作. -n Prevent the normal sync(2) before stopping. 防止通常的对super-block的update. -r Execute reboot(1M). 执行重起动. FILES /etc/rmtab remote mounted file system table SunOS 5.6 Last change: 11 Oct 1994 1 SunOS/BSD Compatibility Package Commands shutdown(1B) ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: __________________________________ | 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. 如果用绝对时间,时间指定必须在now和23:59之间. SunOS 5.6 Last change: 11 Oct 1994 2 |
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.