[PATCH 0/4] logrotate related patches

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Daniel Willmann daniel at totalueberwachung.de
Sun Jul 17 15:48:16 UTC 2011


Hi,

this series of patches makes sure that the logs generated by
osmo_pcap_server are cleaned up. I wasn't able to use logrotate since we
wanted to keep the timestamped filenames and logrotate would treat every
log as independent.
The script now sorts the pcap logs per-client and deletes all but the
newest N files. The oldest M remaining files will be compressed with
gzip.
Some small fixes for problems I encountered are included. I hope the
requirement for libosmocore 0.3.2 is okay.

Regards,

Daniel Willmann (4):
  server: Fix memory leak and error handling in restart_pcap
  server: Register signal handler to reopen logfiles on SIGHUP
  Catch up with API change in osmo_sock_init
  contrib: Add a script to clean up in regular intervals

 Makefile.am                          |    2 +-
 configure.ac                         |    3 +-
 contrib/Makefile.am                  |    1 +
 contrib/clean_old                    |   46 ++++++++++++++++++++++++++++++++++
 include/osmo-pcap/osmo_pcap_server.h |    2 +
 src/osmo_client_network.c            |    2 +-
 src/osmo_server_main.c               |    4 +++
 src/osmo_server_network.c            |   31 +++++++++++++++++++++-
 8 files changed, 86 insertions(+), 5 deletions(-)
 create mode 100644 contrib/Makefile.am
 create mode 100755 contrib/clean_old

-- 
1.7.5.3





More information about the OpenBSC mailing list