Debian Codegraph @

doc/utils/ftpshut.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <HTML><HEAD><TITLE>Manpage of ftpshut</TITLE>
3 </HEAD><BODY>
4 <HR>
5
6 <H2>NAME</H2>
7
8 ftpshut - shut down all proftpd servers at a given time
9
10 <H2>SYNOPSIS</H2>
11
12 <B>ftpshut</B>
13
14 [
15 <B>-l</B><I> min </I>
16
17 ] [
18 <B>-d</B><I> min </I>
19
20 ]
21 <I>time</I>
22
23 [
24 <I>warning-message </I>
25
26 ]
27
28 <H2>DESCRIPTION</H2>
29
30 The <B>ftpshut</B> command provides an automated shutdown procedure that a
31 superuser can use to automagically disconnect current proftpd connections,
32 and deny new connections. The command creates a control file as
33 <B>/etc/shutmsg</B> to inform proftpd processes about an impending shutdown.
34
35 <H2>OPTIONS</H2>
36
37 <DL COMPACT>
38
39 <DT><B>time</B>
40 <DD>
41 The time at which the ftp servers will be brought down. It may be the
42 word `now', indicating an immediate shutdown, or a future time in one
43 of two formats: <I>+number</I> or <I>HHMM.</I> The first form brings the
44 servers down in <I>number</I> minutes, while the second form indicates an
45 exact time of day, using a 24-hour clock format.
46
47 <P>
48 <DT><B>-l min</B>
49 <DD>
50 Specifies the number of minutes before shutdown that new ftp access will
51 be disabled. If the -l option is not specified, a default of 10 minutes
52 (or immediately, if less than 10 minutes remains until shutdown) is used.
53
54 <P>
55 <DT><B>-d min</B>
56 <DD>
57 Specifies the number of minutes before shutdown that existing ftp
58 connections will be disconnected. If the -d option is not specified,
59 a default of 5 minutes (or immediately, if less than 5 minutes remains
60 until shutdown) is used.
61
62 <P>
63 <DT><B>warning-message</B>
64 <DD>
65 Optionally provide a message which will be sent to new connections
66 (if denied) and existing connections (when disconnected). The message
67 can contain the following magic cookies, which will be replaced as
68 follows before being sent to new or existing connections:
69
70 <DL COMPACT><DT><DD>
71 <DL COMPACT>
72 <DT><B>%s</B>
73 <DD>
74 time proftpd is being shut down
75
76 <DT><B>%r</B>
77 <DD>
78 time new connections will be denied
79
80 <DT><B>%d</B>
81 <DD>
82 time current connections will be dropped
83
84 <DT><B>%C</B>
85 <DD>
86 current working directory (where applicable)
87
88 <DT><B>%L</B>
89 <DD>
90 local host name (of virtualhost name)
91
92 <DT><B>%R</B>
93 <DD>
94 remote host name
95
96 <DT><B>%T</B>
97 <DD>
98 local time (format Thu Nov 15 17:12:42 1990)
99
100 <DT><B>%U</B>
101 <DD>
102 username given at login time
103
104 </DL>
105 </DL>
106 </DL>
107
108 <H2>CAVEATS</H2>
109
110 Proftpd servers can only be shutdown via ftpshut if a master daemon is running
111 in <I>standalone</I> mode. Servers running in <I>inetd</I> mode will honor
112 the shutdown message file created by ftpshut, however currently running servers
113 may be chroot(2)ed, and unable to read the shutdown message control file.
114
115 <P>
116 It is possible to set an absolute shutdown time which is
117 <B>earlier</B> than the current time. If this is the case, proftpd will not
118 shutdown until the indicated time on the following day.
119
120 <H2>FILES</H2>
121
122 <B>/usr/sbin/ftpshut</B><BR>
123 <B>/etc/shutmsg</B>
124
125 <H2>AUTHORS</H2>
126
127 <P>
128 ProFTPD is written and maintained by a number of people, full credits
129 can be found on <A HREF="http://www.proftpd.org/credits.html">http://www.proftpd.org/credits.html</A>
130
131 <H2>SEE ALSO</H2>
132 inetd(8), ftp(1), proftpd(8), ftpwho(1), ftpcount(1)
133
134 <P>
135 Full documentation on ProFTPD, including configuration and FAQs, is available at
136 <A HREF="http://www.proftpd.org/">http://www.proftpd.org/</A>
137 <P>
138
139 Report bugs at <A HREF="http://bugs.proftpd.org/">http://bugs.proftpd.org/</A><BR>
140 For help/support, try the ProFTPD mailing lists, detailed on
141 <A HREF="http://www.proftpd.org/lists.html">http://www.proftpd.org/lists.html</A>
142
143 <p>
144 <hr>
145 <font size=2><b><i>
146 &copy; Copyright 2017 The ProFTPD Project<br>
147 All Rights Reserved<br>
148 </i></b></font>
149 <hr>
150
151 </BODY>
152 </HTML>