Книга: 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>
year
can be any year after 1970 (called the epoch), month 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

Оглавление книги


Генерация: 1.335. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз