| KYSDK-LOGROTATE(8) | System Administration Utilities | KYSDK-LOGROTATE(8) |
NAME
kysdk-logrotate - KYLIN SDK Log Rotation Configuration Management Tool
SYNOPSIS
kysdk-logrotate
DESCRIPTION
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.
FEATURES
- Automatic Configuration Management
- Automatically creates and manages log rotation configuration files in the `/etc/logrotate.d/kylog-rotate/` directory
- Default Rotation Rules
- 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)
FILES
- /etc/logrotate.d/kylog-rotate/
- Log rotation configuration file storage directory
- /usr/bin/kysdk-logrotate
- Executable file path
SERVICE
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`.
AUTHOR
KylinSoft Co., Ltd.
COPYRIGHT
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.
SEE ALSO
| 2025 | Version 1.0 |