System Administration Guide: Network Services

ProcedureHow to Shut Down the FTP Server

Follow the steps in this procedure to run ftpshut and to add the shutdown directive to the ftpaccess file.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. Add the following entries to the ftpaccess file.


    shutdown path
    
    shutdown

    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

    path

    Location of the file that was created by ftpshut command

  3. Run the ftpshut command.


    ftpshut [ -V ] [ -l min] [ -d min] time [warning-message...]
    ftpshut

    Command that provides a procedure for notifying users that the FTP server is shutting down.

    -V

    Option that is specified to display copyright and version information, then terminate

    -l

    Flag that is used to adjust the time that new connections to the FTP server are denied

    -d

    Flag that is used to adjust the time that existing connections to the FTP server are disconnected.

    time

    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

    [warning-message...]

    Shutdown notification message

  4. Use the ftprestart command to restart the FTP server after shutdown.

    For further information, see ftpshut(1M), ftpaccess(4), and ftprestart(1M).