codership / glb

Galera Load Balancer - a simple TCP connection proxy and load-balancing library
GNU General Public License v2.0
153 stars 51 forks source link

Reopen log file on -HUP signal #6

Open ayurchen opened 10 years ago

ayurchen commented 10 years ago

This is required to implement logrotate functionality via logrotate.d script, e.g.

/var/log/galera/*.log { daily rotate 5 compress create 644 root root dateext postrotate test -f /var/lock/subsys/garbd && /etc/init.d/garb reload || : endscript }

where "reload" command means -HUP