From 3febc1935c16d9583d42080d6bf79faf8d723994 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 21 Nov 2024 04:17:16 -0700 Subject: [PATCH] Create new log files after rotation. --- Rocksolid_Light/rslight/scripts/cron.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Rocksolid_Light/rslight/scripts/cron.php b/Rocksolid_Light/rslight/scripts/cron.php index cd2841f..8b54b32 100644 --- a/Rocksolid_Light/rslight/scripts/cron.php +++ b/Rocksolid_Light/rslight/scripts/cron.php @@ -318,6 +318,7 @@ function log_rotate() @rename($logfile . '.1', $logfile . '.2'); file_put_contents($logfile, "\nLog file rotated", FILE_APPEND); @rename($logfile, $logfile . '.1'); + file_put_contents($logfile, "\nLog file started", FILE_APPEND); echo 'Rotated: ' . $logfile . "\n"; } unlink($logdir . '/rotate');