From 4b52d3c6710b97045ae5d8d64b4c6304e48ec40b Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 20 Sep 2022 13:51:40 +0200 Subject: [PATCH] logrotate.d --- setup-scripts/logrotate.d/skynet-webportal-nginx | 15 +++++++++++++++ setup-scripts/logrotate.d/skynet-webportal-skyd | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 setup-scripts/logrotate.d/skynet-webportal-nginx create mode 100644 setup-scripts/logrotate.d/skynet-webportal-skyd diff --git a/setup-scripts/logrotate.d/skynet-webportal-nginx b/setup-scripts/logrotate.d/skynet-webportal-nginx new file mode 100644 index 00000000..0fc29be4 --- /dev/null +++ b/setup-scripts/logrotate.d/skynet-webportal-nginx @@ -0,0 +1,15 @@ +/home/user/skynet-webportal/docker/data/nginx/logs/*.log { + daily + rotate 3650 + minsize 500M + create 644 root root + notifempty + dateext + missingok + compress + delaycompress + sharedscripts + postrotate + docker exec nginx nginx -s reopen + endscript +} diff --git a/setup-scripts/logrotate.d/skynet-webportal-skyd b/setup-scripts/logrotate.d/skynet-webportal-skyd new file mode 100644 index 00000000..6677d9c7 --- /dev/null +++ b/setup-scripts/logrotate.d/skynet-webportal-skyd @@ -0,0 +1,13 @@ +/home/user/skynet-webportal/docker/data/sia/*.log +/home/user/skynet-webportal/docker/data/sia/*/*.log +/home/user/skynet-webportal/docker/data/sia/*/*/*.log { + daily + rotate 3650 + minsize 500M + create 644 root root + notifempty + dateext + missingok + compress + delaycompress +}