{
    "mode": "man",
    "parameter": "ftpshut",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/ftpshut/8/json",
    "generated": "2026-10-07T18:33:19Z",
    "synopsis": "ftpshut [ -R ] [ -l min ] [ -d min ] time [ warning-message ]",
    "sections": {
        "NAME": {
            "content": "ftpshut - shut down all proftpd servers at a given time\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ftpshut [ -R ] [ -l min ] [ -d min ] time [ warning-message ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  ftpshut command provides an automated shutdown procedure that a superuser can use to au‐\ntomagically disconnect current proftpd connections, and deny new  connections.   The  command\ncreates  a  control file as /etc/shutmsg to inform proftpd processes about an impending shut‐\ndown.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "time      The time at which the ftp servers will be brought down.  It may be the word  `now',\nindicating  an  immediate shutdown, or a future time in one of two formats: +number\nor HHMM.  The first form brings the servers down in number minutes, while the  sec‐\nond form indicates an exact time of day, using a 24-hour clock format.\n",
            "subsections": [
                {
                    "name": "-R",
                    "content": "service.  If this option is used, this will be the only operation performed by ftp‐\nshut\n",
                    "flag": "-R"
                },
                {
                    "name": "-l min",
                    "content": "abled.  If the -l option is not specified, a default of 10 minutes (or immediately,\nif less than 10 minutes remains until shutdown) is used.\n",
                    "flag": "-l"
                },
                {
                    "name": "-d min",
                    "content": "be disconnected.  If the -d option is not specified, a default of 5 minutes (or im‐\nmediately, if less than 5 minutes remains until shutdown) is used.\n",
                    "flag": "-d"
                },
                {
                    "name": "warning-message",
                    "content": "Optionally provide a message which will be sent to new connections (if denied)  and\nexisting  connections  (when  disconnected).  The message can contain the following\nmagic cookies, which will be replaced as follows before being sent to new or exist‐\ning connections:\n\n%s  time proftpd is being shut down\n%r  time new connections will be denied\n%d  time current connections will be dropped\n%C  current working directory (where applicable)\n%L  local host name (or virtualhost name)\n%R  remote host name\n%T  local time (format Thu Nov 15 17:12:42 1990)\n%U  username given at login time\n"
                }
            ]
        },
        "CAVEATS": {
            "content": "Proftpd servers can only be shutdown via ftpshut if a master daemon is running in  standalone\nmode.  Servers running in inetd mode will honor the shutdown message file created by ftpshut,\nhowever currently running servers may be chroot(2)ed, and unable to read the shutdown message\ncontrol file.\n\nIt  is  possible to set an absolute shutdown time which is earlier than the current time.  If\nthis is the case, proftpd will not shutdown until the indicated time on the following day.\n",
            "subsections": []
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "/usr/sbin/ftpshut",
                    "content": ""
                },
                {
                    "name": "/etc/shutmsg",
                    "content": ""
                }
            ]
        },
        "AUTHORS": {
            "content": "ProFTPD is written and maintained by a number  of  people,  full  credits  can  be  found  on",
            "subsections": [
                {
                    "name": "http://www.proftpd.org/credits.html",
                    "content": ""
                }
            ]
        },
        "SEE ALSO": {
            "content": "inetd(8),ftp(1),proftpd(8),ftpwho(1),ftpcount(1)\n\nFull   documentation   on   ProFTPD,  including  configuration  and  FAQs,  is  available  at",
            "subsections": [
                {
                    "name": "http://www.proftpd.org/",
                    "content": "For     help/support,     try     the     ProFTPD     mailing     lists,     detailed      on"
                },
                {
                    "name": "http://www.proftpd.org/lists.html",
                    "content": "Report bugs at http://bugs.proftpd.org/\n\nMarch 2003                                   ftpshut(8)"
                }
            ]
        }
    },
    "summary": "ftpshut - shut down all proftpd servers at a given time",
    "flags": [
        {
            "flag": "-R",
            "long": null,
            "arg": null,
            "description": "service. If this option is used, this will be the only operation performed by ftp‐ shut"
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": "abled. If the -l option is not specified, a default of 10 minutes (or immediately, if less than 10 minutes remains until shutdown) is used."
        },
        {
            "flag": "-d",
            "long": null,
            "arg": null,
            "description": "be disconnected. If the -d option is not specified, a default of 5 minutes (or im‐ mediately, if less than 5 minutes remains until shutdown) is used."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "inetd",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/inetd/8/json"
        },
        {
            "name": "ftp",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ftp/1/json"
        },
        {
            "name": "proftpd",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/proftpd/8/json"
        },
        {
            "name": "ftpwho",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ftpwho/1/json"
        },
        {
            "name": "ftpcount",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ftpcount/1/json"
        }
    ]
}