ftpshut(1Mtcp)


ftpshut -- close down the FTP servers at a given time

Synopsis

ftpshut [-l min] [-d min] time ["warning message"]

Description

The ftpshut command provides an automated shutdown procedure that root can use to notify FTP users when the FTP server is shutting down.

time is the time at which ftpshut will bring the FTP servers down. It may be the word now, indicating an immediate shutdown, or specify a future time in one of two formats:

+number
Bring the FTP servers down in number minutes.

hhmm
Bring the FTP servers down at the time of day indicated, using the 24-hour clock format. NOTE: You can only only specify a time between the current time and ``2359'' (23:59).
Ten minutes before shutdown (or immediately if ftpshut is scheduled for less than ten minutes) new FTP access will be disabled. This time may be adjusted using the -l option.

Five minutes before shutdown (or immediately if ftpshut is scheduled for less than five minutes) all current FTP connections will be disconnected. This time may be adjusted using the -d option.

The warning messages are formatted to be 75 characters wide. ftpshut knows about the actual string length of magic cookies.

The following magic cookies are available:

%C
current working directory

%d
time at which current connections will be dropped

%E
the maintainer's email address as defined in the ftpaccess file

%F
free space in filesystem of CWD (in kilobytes)

%L
local host name

%M
maximum allowed number of users in this class

%N
current number of users in this class

%r
time at which new connections will be denied

%R
remote host name

%s
time at which system is going to shut down

%T
local time (for example, Thu Nov 15 17:12:42 1990)

%U
username given at login time

References

ftpaccess(4tcp), shutdown(1M)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.