I don't know if this could be classified as a bug (in the code) or a
'thinko' (on my part). It probably should be mentioned somewhere....

Either using configuration statements, e.g.
Define DoDebug
or using command-line options, e.g.
proftpd -DDoDebug
you can 'set' named definitions which can later be tested from within
the configuration, e.g.

DebugLevel 9


Instead of , you can use "" to make the
opposite test.

When running a standalone server, you can use "kill -HUP" to force
ProFTPD to re-read the configuration, presumably because you have changed that.

How well does this work for changes involving 'defines'? Umm, half okay?

If you have a configuration that has a definition commented out,
# Define NoAdminSite
then upon starting the configuration 'sees' just that, the name is not defined.

If you change the config to instead define the name,
Define NoAdminSite
and then restart the server,
kill -HUP `cat /usr/local/var/proftpd.pid`
then upon re-reading the configuration the server will react
appropriately, using any statements inside


However, if you then change the config to remove the define name,
# Define NoAdminSite
and SIGHUP the server, the server re-reads the config but reacts as
though the define name was still defined.

Using SIGHUP does not cause currently defined names to
disappear. Once defined, names stay defined until the next time the
server is terminated.

Of course the workaround is simply to terminate, then start the
server again. But that does kill all the running sessions...


Test config statements, with same results in either server context or
when used in section. Results are from debug listing:
# Define FooSection
Define BarSection


AllowOverwrite on # something benign


AllowOverwrite on


AllowOverwrite on


AllowOverwrite on


Using below, killed standalone, started
# Define FooSection
Define BarSection
- : skipping 'FooSection' section at line 139
- : using '!FooSection' section at line 142
- : using 'BarSection' section at line 145
- : skipping '!BarSection' section at line 148

Changed to below, and SIGHUP'd
Define FooSection
Define BarSection
- : using 'FooSection' section at line 139
- : skipping '!FooSection' section at line 142
- : using 'BarSection' section at line 145
- : skipping '!BarSection' section at line 148

Killed and started again
- : using 'FooSection' section at line 139
- : skipping '!FooSection' section at line 142
- : using 'BarSection' section at line 145
- : skipping '!BarSection' section at line 148

Changed to below, and SIGHUP'd
# Define FooSection
Define BarSection
- : using 'FooSection' section at line 139
- : skipping '!FooSection' section at line 142
- : using 'BarSection' section at line 145
- : skipping '!BarSection' section at line 148

*** The above is the 'bad' result. Should have changed and
*** should have been the same result as seen below.

Killed and started again
- : skipping 'FooSection' section at line 139
- : using '!FooSection' section at line 142
- : using 'BarSection' section at line 145
- : skipping '!BarSection' section at line 148


--
Problem Report: Network Outage
Scope of Impact: Customers not able to get to their applications and
files through the network. Customers who are not currently having
problems accessing files and applications will not be impacted.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
ProFTPD Users List
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html