On 14/09/10 17:48, Olaf van der Spek wrote: >> are you suggesting that logrotate handle this process? i don't see a >> way to do >> this that's simpler than (2). for example, the simplest way i can >> think of: >> >> - lighttpd tells logrotate "i'm a webserver" >> - awstats tells logrotate "i want to process webserver logs" >> - logrotate can do the rest >> >> is just adding an unnecessary middle man. > > That only has to be implemented once. > Your approach requires a lot of code duplication. > > Olaf
run-parts a directory is hardly "a lot of code" :/ the middle man approach is cleaner and marginally easier to maintain than the run-parts approach, but more costly to implement. i don't see the point in waiting for logrotate to implement this, just to save a few bytes on the webserver's logrotate script. if it eventually turns out that a lot of packages need this general feature, a clean middle-man can be implemented later, and the logrotate developers will be more likely to do it. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org