The sfptpdctl logrotate command causes the
sfptpd daemon to close and reopen the log file, creating the file
if it does not already exist, and overwriting the file if it does already exist.
Note: This command does not move or rename
an existing log file.
To ensure any existing log file is kept, do one of the following:
- Call the
sfptpdctl logrotatecommand from thepostrotatesection of a standard Linuxlogrotateconfiguration file. For example:postrotate <path>/sfptpdctl logrotate || true endscript - Move/rename the current log file before invoking the
sfptpdctl logrotatecommand.