System Log Rotation

Enhanced PTP User Guide (UG1602)

Document ID
UG1602
Release Date
2022-10-18
Revision
1.0 English

The sfptpdctl logrotate command causes the sfptpd daemon to close and reopen the log file, creating the file if it does not already exist.

Note: This action does not rename the log file.

The sfptpdctl logrotate command could be called from the postrotate section of a standard Linux logrotate configuration file. For example:

postrotate
    <path>/sfptpdctl logrotate || true
endscript

An alternative action would be to move/rename the current log file before invoking the sfptpdctl logrotate command.