The ftpshut(1m) command is used to shut down the FTP server. You can optionally specify the number of minutes to new user lockout and disconnect of existing users as well as the logout message, or you can specify a configuration file containing this information.
The ftpshut(1m) command creates the file/var/ftp/shutdown. This blocks the restart of the FTP server until you enter the command ftpshut enable.
Shut down FTP immediately:
ftpshut now
Shut down FTP in 15 minutes, deny access to new users in 5 minutes, disconnect users not in file transfer mode in 10 minutes:
root# ftpshut -l 5 -d 10 15 System going down in 15 minutes
The shutdown message is limited to 76 characters maximum.
Please refer to the ftpshut(1m) man page for information on creating and using a shutdown configuration file.