Browse Source

Fix hestia logrotate (#5148)

* Fix hestia logrotate

Forum link https://forum.hestiacp.com/t/logrotate-issue-with-nginx-log-files/20572

* reload

---------

Co-authored-by: divinity76 <hans@loltek.net>
sahsanu 3 months ago
parent
commit
cd7f009357
1 changed files with 4 additions and 0 deletions
  1. 4 0
      install/deb/logrotate/hestia

+ 4 - 0
install/deb/logrotate/hestia

@@ -4,4 +4,8 @@
     missingok
     missingok
     notifempty
     notifempty
     create 0600 root root
     create 0600 root root
+    sharedscripts
+    postrotate
+        systemctl reload hestia.service >/dev/null 2>&1 || true
+    endscript
 }
 }