Книга: Fedora™ Unleashed, 2008 edition
Structure of the shutdown File
Structure of the shutdown
File
The shutdown command tells the server where to look for the shutdown
message generated by the ftpshut
command or by the user. The shutdown
command is used with a pathname to a shutdown file, such as:
shutdown /etc/rh8ftpshutdown
If this file exists, the server checks the file to see when the server should shut down. The syntax of this file is as follows:
<year> <month> <day> <hour> <minute> <deny_offset> <disc_offset> <text>
can be any year after 1970 (called the epoch),
yearmonth
is from 0-11, hour
is 0-23, and minute
is 0-59. deny_offset
is the number of minutes before shutdown in which the server disallows new connections. disc_offset
is the number of minutes before connected users are disconnected, and text
is the message displayed to the users at login. In addition to the valid magic cookies defined in the messages section, those listed in Table 20.2 are also available.
TABLE 20.2 Magic Cookies for the shutdown
File
Cookie | Description |
---|---|
%s |
The time the system will be shut down |
%r |
The time new connections will be denied |
%d |
The time current connections will be dropped |
- Using Commands in the ftpaccess File to Configure wu-ftpd
- 9.2.2. Checking File System Integrity
- Shared Cache file
- Безопасность внешних таблиц. Параметр EXTERNAL FILE DIRECTORY
- 4.4.4 The Dispatcher
- About the author
- Chapter 7. The state machine
- Chapter 13. rc.firewall file
- Appendix E. Other resources and links
- Example NAT machine in theory
- Shutdown and abort
- SCTP SHUTDOWN chunk