KYSDK-LOGROTATE(8) System Administration Utilities KYSDK-LOGROTATE(8)

kysdk-logrotate - KYLIN SDK Log Rotation Configuration Management Tool

kysdk-logrotate

kysdk-logrotate is a log rotation configuration management tool in the KYLIN SDK system. This tool is responsible for managing and configuring log rotation rules to ensure that system log files do not grow infinitely, thereby saving disk space and improving system performance.

The tool automatically creates and maintains log rotation configuration files in the `/etc/logrotate.d/kylog-rotate/` directory, and performs rotation processing on specified log files according to default rules.

Automatically creates and manages log rotation configuration files in the `/etc/logrotate.d/kylog-rotate/` directory
Uses preset rotation rule configuration, including: - Daily rotation (daily) - Retain 5 historical files (rotate 5) - Enable compression (compress) - Add date extension (dateext) - Ignore missing files (missingok) - Do not rotate empty files (notifempty) - Copy and truncate original file (copytruncate) - Execute with root user privileges (su root root)

/etc/logrotate.d/kylog-rotate/
Log rotation configuration file storage directory
/usr/bin/kysdk-logrotate
Executable file path

This tool runs as a systemd service with the service file [kysdk-logrotate.service](file:///media/kylin/tianss/openkylin/libkysdk-system/src/logrotate/kysdk-logrotate.service), communicating through D-Bus interface with service name `com.kysdk.base`.

KylinSoft Co., Ltd.

Copyright (C) 2023-2025, KylinSoft Co., Ltd.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

logrotate(8), systemd(1), dbus-daemon(1)

2025 Version 1.0