From cc32fa3a874a1ce071d6509aaff8ebc4df95423a Mon Sep 17 00:00:00 2001
From: John Estabrook <jestabro@vyos.io>
Date: Wed, 3 Jul 2024 08:57:33 -0500
Subject: syslog: T5366: remove reference to deprecated sysvinit rsyslog script

(cherry picked from commit 977d2fbf7a62a97d98b38cf28e62f08fc9e8d3a2)
---
 data/templates/rsyslog/logrotate.j2 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/data/templates/rsyslog/logrotate.j2 b/data/templates/rsyslog/logrotate.j2
index ea33fea4f..b9689a1cf 100644
--- a/data/templates/rsyslog/logrotate.j2
+++ b/data/templates/rsyslog/logrotate.j2
@@ -5,9 +5,6 @@
   create
   rotate 5
   size=256k
-  postrotate
-    invoke-rc.d rsyslog rotate > /dev/null
-  endscript
 }
 
 {% if file is vyos_defined %}
@@ -18,9 +15,6 @@
   create
   rotate {{ file_options.archive.file }}
   size={{ file_options.archive.size | int // 1024 }}k
-  postrotate
-    invoke-rc.d rsyslog rotate > /dev/null
-  endscript
 }
 
 {%     endfor %}
-- 
cgit v1.2.3