L
L
Lite_robot2017-02-21 22:19:10
linux
Lite_robot, 2017-02-21 22:19:10

How to configure 3proxy to track files that may not exist when 3proxy is launched?

Good day,
I wrote the following config, but it does not track files that appear after launch. Tell me how to configure 3proxy so that it restarts or reconfigures when these files appear? Can this be done using 3proxy itself?
Config snippet:
monitor /3proxy.cfg
socks -p8080 -i127.0.0.1 -e$"/tmp/IP"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2017-02-22
@z3apa3a

The answer to your question is something like this: along with the include command, add the monitor command.
The correct answer is: you shouldn't do that at all. Never need to monitor many files. The proxy does not reread individual files, it rereads the entire configuration. If you are writing multiple files and monitoring them, there is always a chance that the proxy reads an incomplete configuration, because some other file will only be half written. Therefore, with a complex configuration, you need to monitor a separate file specially created for this, for example, 3proxy.cfg.version. When updating the configuration - update all files, then change 3proxy.cfg.version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question