On Sun, Feb 02, 2025 at 02:26:20AM +0100, Chris Hofstaedtler wrote:
> Providing initscripts would IMO be sensible; for systemd wmptdb
> provides two .service files as integration.

Yes, unit-translator converts wtmpdb-rotate to:

# Generated by /home/mark/src/debian/unit-translator/utrans from:
#  e9c8cbb4c61b786779a85eddb3ca93fa0d2315216e45d2cbc729c2b5db344411  
./tmp.iH71YBzenr/usr/lib/systemd/system/wtmpdb-rotate.timer
#  2e6646662d8856d9048eab093e8f59d9399a8d0835b8fa789945d4d0efd8bfbb  
./tmp.iH71YBzenr/usr/lib/systemd/system/wtmpdb-rotate.service

# m h dom mon dow user command

0 0 1 * * root [ -d /run/systemd/system ] || { /usr/bin/wtmpdb rotate; }
# Alternatively, if your system is running openrc you could use
# 0 0 1 * * root rc-service wtmpdb-rotate start


Obviously it can be cleaned up a bit manually, but it is a reasonable starting
point.

Mark

Reply via email to