Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 125241

Summary: www-servers/lighttpd in logrotate use kill -hup to cycle logfiles insetad of doing restart
Product: Gentoo Linux Reporter: david somers <dsomers>
Component: New packagesAssignee: Aaron Walker (RETIRED) <ka0ttic>
Status: RESOLVED FIXED    
Severity: enhancement CC: rockoo
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description david somers 2006-03-06 07:23:05 UTC
lighttpd will respond to kill -hup and reload its config (and reopen its log files). Therefore, please add a reload option into init.d/lighttpd (and also tweak logrotate.d/lighttpd to call reload instead of restart).

BTW, when doing a restart/reload on lighttpd, it might be a good idea to also do pkill -u lighttpd to ensure that any runaway fastcgi jobs, etc., are also zapped immediately :-)
Comment 1 david somers 2006-03-06 10:10:54 UTC
Argh. Sorry. kill -hup just recycles lighty's log files, so it can be used by logrotate instead of doing a restart.
Comment 2 david somers 2006-03-06 10:12:42 UTC
Argh. Sorry. kill -hup just recycles lighty's log files, so it can be used by logrotate instead of doing a restart.
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2006-05-30 12:55:28 UTC
in cvs - thanks!