Make Java app reload its config file while running
<p>Consider a Java standalone uberjar, which acts as a HTTP server and is run as a Linux service. Some of its functionality depends on an external config file, which might change once in while.</p>

<p>I try to avoid restarting the app every time the config changes. How could this be properly done? I immediately thought of sending a SIGHUP. Could this be caught by java app? Or maybe there is another way to achieve this?</p>