thttpd: broken log rotation
Bug #131363 reported by
Jonas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
thttpd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: thttpd
I installed ubuntu 7.04 server and added thttpd using apt-get. At first all seemed fine, webpages were served and entries were added to the logfile. However after a few days I noticed that the logfile /var/log/thttpd were empty. It seems like thttpd is not able to handle the transition when the logfile is rotated and stop writing or begin writing to something like /dev/null.
Changed in thttpd: | |
status: | New → Confirmed |
summary: |
- thttpd: broken logging + thttpd: broken log rotation |
To post a comment you must log in.
A brute force workaround that seems to work for me is to replace everything in the postrotate clause in /etc/logrotate. d/thttpd with this:
The result is:
/var/log/thttpd.log {
/usr/bin/ killall thttpd
/etc/init. d/thttpd restart
rotate 14
daily
compress
missingok
delaycompress
postrotate
endscript
}