From 98e0b7dfa5e7d4315aeb87159e09238286a5d4eb Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Wed, 26 May 2021 19:19:43 +0200 Subject: [PATCH 1/5] Create log rotation for lookyloo logs --- etc/logrotate.d/lookyloo | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etc/logrotate.d/lookyloo diff --git a/etc/logrotate.d/lookyloo b/etc/logrotate.d/lookyloo new file mode 100644 index 00000000..193de4e0 --- /dev/null +++ b/etc/logrotate.d/lookyloo @@ -0,0 +1,9 @@ +/var/log/lookyloo* { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 0640 root root +} From 714ab74f48285c9b5496e8a29e92ec7648f367b1 Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Wed, 26 May 2021 19:22:51 +0200 Subject: [PATCH 2/5] Create aquarium logrotate file --- etc/logrotate.d/aquarium | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etc/logrotate.d/aquarium diff --git a/etc/logrotate.d/aquarium b/etc/logrotate.d/aquarium new file mode 100644 index 00000000..db0fe45c --- /dev/null +++ b/etc/logrotate.d/aquarium @@ -0,0 +1,9 @@ +/var/log/aquarium.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 0640 root root +} From 03b635cc2b6a5e4fe76b0a78914081405b68bf77 Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Wed, 26 May 2021 19:23:17 +0200 Subject: [PATCH 3/5] Update lookyloo --- etc/logrotate.d/lookyloo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/logrotate.d/lookyloo b/etc/logrotate.d/lookyloo index 193de4e0..da2959eb 100644 --- a/etc/logrotate.d/lookyloo +++ b/etc/logrotate.d/lookyloo @@ -1,4 +1,4 @@ -/var/log/lookyloo* { +/var/log/lookyloo*.log { daily missingok rotate 14 From b96e50c1fdac34e025a55e4640b67fe2239ee40d Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Wed, 26 May 2021 19:24:51 +0200 Subject: [PATCH 4/5] Creating logrotation for aquarium --- etc/systemd/system/aquarium.service.sample | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/systemd/system/aquarium.service.sample b/etc/systemd/system/aquarium.service.sample index 7d203c98..2aa9b2df 100644 --- a/etc/systemd/system/aquarium.service.sample +++ b/etc/systemd/system/aquarium.service.sample @@ -11,6 +11,8 @@ RemainAfterExit=true WorkingDirectory= ExecStart=/usr/bin/docker-compose up -d --remove-orphans ExecStop=/usr/bin/docker-compose down +StandardOutput=append:/var/log/aquarium_message.log +StandardError=append:/var/log/aquarium_error.log [Install] WantedBy=multi-user.target From d1c365d28ad32203c956264904ad72d34af77646 Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Wed, 26 May 2021 19:26:55 +0200 Subject: [PATCH 5/5] Update aquarium --- etc/logrotate.d/aquarium | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/logrotate.d/aquarium b/etc/logrotate.d/aquarium index db0fe45c..0f08fb8f 100644 --- a/etc/logrotate.d/aquarium +++ b/etc/logrotate.d/aquarium @@ -1,4 +1,4 @@ -/var/log/aquarium.log { +/var/log/aquarium*.log { daily missingok rotate 14