Standard Unix daemons support the signal HUP to rotate log files. When ever a daemon receives the signal it closes all log files and reopens them.
I have a daemon process in Java using Apache Commons Daemon. The daemon implementation supports three methods: init, start and stop. But I can not find any support for Unix signals. How to support the HUP signal to rotate log files?