Debian Codegraph @

utils/ftpshut.8.in

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