Follow the steps in this procedure to run ftpshut and to add the shutdown directive to the ftpaccess file.
Become superuser.
Add the following entries to the ftpaccess file.
shutdown path |
Keyword that is used to specify the path to a file that is checked regularly for whether the FTP server is scheduled to be shut down
Location of the file that was created by ftpshut command
Run the ftpshut command.
ftpshut [ -V ] [ -l min] [ -d min] time [warning-message...] |
Command that provides a procedure for notifying users that the FTP server is shutting down.
Option that is specified to display copyright and version information, then terminate
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
Use the ftprestart command to restart the FTP server after shutdown.
For further information, see ftpshut(1M), ftpaccess(4), and ftprestart(1M).