The ftpshut command closes down the FTP server at a particular time. Use this procedure if you want to stop serving FTP only, but not stop the daemon so that it can report when the service is not available to clients. The ftpshut command will block connections and stop the current connection, but not shutdown the server daemon itself.
When you run ftpshut, a file is generated from command-line options that specify when shutdown occurs, the point at which new connections are refused, and when existing connections are dropped. Users are notified of a server shutdown based on this information. The location of the file that is created by ftpshut is /etc/shutmsg.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
# ftpshut [-l min] [-d min] time [warning-message...]
Command that provides a procedure for notifying users that the FTP server is shutting down.
Flag that is used to adjust the time that new connections to the FTP server are denied
Flag that is used to adjust the time that existing connections to the FTP server are disconnected
Shutdown time that is specified by the word now for immediate shutdown, or in one of two formats (+ number or HHMM) for a future shutdown
Shutdown notification message; see the ftpshut(8) man page for more information
Use the ftprestart command to restart the connections to the FTP server. For further information, see ftpshut(8) and ftprestart(8).