Bug#1094965: wtmpdb: provides no way to prune rotated logs

2025-02-04 Thread Andrew Bower
On Tue, Feb 04, 2025 at 10:32:55AM +0100, Chris Hofstaedtler wrote: > On Tue, Feb 04, 2025 at 12:33:04AM +, Andrew Bower wrote: > > > > Surely it depends - some thing are highly distro-specific. The amount of > > detritus that accumulates in upstream contrib directories over the > > years... s

Bug#1094965: wtmpdb: provides no way to prune rotated logs

2025-02-04 Thread Chris Hofstaedtler
On Tue, Feb 04, 2025 at 12:33:04AM +, Andrew Bower wrote: > > Surely it depends - some thing are highly distro-specific. The amount of > detritus that accumulates in upstream contrib directories over the > years... scripts that new integrators would surely rather rewrite for > their own contex

Bug#1094965: wtmpdb: provides no way to prune rotated logs

2025-02-03 Thread Andrew Bower
Thanks for the review, Chris! On Mon, Feb 03, 2025 at 11:52:08PM +0100, Chris Hofstaedtler wrote: > ISTM this is a lot of new, potentially fragile sh code, possibly > with undefined semantics. Indeed shellcheck has a lot of things to > say, including: > > | In prune-logs line 9: > | set -o pipefa

Bug#1094965: wtmpdb: provides no way to prune rotated logs

2025-02-03 Thread Chris Hofstaedtler
* Andrew Bower [250203 23:39]: > Control: tags -1 patch > > On Sat, Feb 01, 2025 at 09:24:31PM +, Andrew Bower wrote: > > wtmpdb will rotate logs but nothing will prune them (like logrotate would > > for > > other types of log - unfortunately it doesn't fit in well with the wtmpdb > > way).

Bug#1094965: wtmpdb: provides no way to prune rotated logs

2025-02-03 Thread Andrew Bower
Control: tags -1 patch On Sat, Feb 01, 2025 at 09:24:31PM +, Andrew Bower wrote: > wtmpdb will rotate logs but nothing will prune them (like logrotate would for > other types of log - unfortunately it doesn't fit in well with the wtmpdb > way). I have come up with a solution whereby a 'prune

Bug#1094965: wtmpdb: provides no way to prune rotated logs

2025-02-01 Thread Andrew Bower
Package: wtmpdb Version: 0.13.0-5 Severity: normal wtmpdb will rotate logs but nothing will prune them (like logrotate would for other types of log - unfortunately it doesn't fit in well with the wtmpdb way). Also logs shouldn't be in a state directory like /var/lib. We can forgive the live datab