Skip to content

POTATrip v2.0.2 — Log rotation

Latest

Choose a tag to compare

@dlweeks dlweeks released this 05 Oct 10:15
· 1 commit to main since this release

What's new

Log rotation

The package now installs /etc/logrotate.d/potatrip and Depends on logrotate:

  • rotates /var/lib/potatrip/pota_trip_log.txt daily or at 10 MB
  • keeps 7 rotations, gzip-compressed
  • copytruncate — works with the running app without a reopen hook

Previously the app's own log file grew unbounded — a slow disk-fill risk on a
publicly reachable instance.

Upgrade on the Pi

wget https://github.com/dlweeks/PotaTrip/releases/download/v2.0.2/potatrip_2.0.2_all.deb
sudo dpkg -i potatrip_2.0.2_all.deb
# verify:
logrotate -d /etc/logrotate.d/potatrip

Verify

94 tests passing. Package verified: logrotate config present, Depends wired.
CDDL-1.1, (c) N5SKT.