Handling log files / Logrotate?

There is not logrotate in SailfishOS? There is, for some reason, /etc/logrotate.d folder, though. What is the “SailfishOS way” to automate rotation of log files - systemd timers, cron jobs?

/etc/logrotate.d comes with the zypper package, so you most likely have that installed. In SFOS, logging is being handled by systemd, more specific systemd-journal, which can be tapped with journalctl.

1 Like

You can configure aspects of log rotation for system log in /etc/systemd/journald.conf (then restart systemd-journald).