From 3485adb47feb560a93753c03e3c6dbc60216506b Mon Sep 17 00:00:00 2001 From: Kawanaao <149584315+Kawanaao@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:47:16 +0300 Subject: [PATCH 1/2] Add support for openrc logrotate --- services/openrc/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/openrc/meson.build b/services/openrc/meson.build index 45000e9..998781c 100644 --- a/services/openrc/meson.build +++ b/services/openrc/meson.build @@ -4,6 +4,9 @@ install_data('scx.initrd', install_dir: '/etc/init.d', rename: 'scx') # Install the 'scx' file to the '/etc/default' directory install_data('../scx', install_dir: '/etc/default') +# Install the 'scx.logrotate' file to /etc/logrotate.d/scx +install_data('scx.logrotate', install_dir: '/etc/logrotate.d', rename: 'scx') + # Symlinking /etc/default/scx to /etc/conf.d/scx install_symlink( 'scx', From f35717e97016fd570388ec66a22649d511368ca9 Mon Sep 17 00:00:00 2001 From: Kawanaao <149584315+Kawanaao@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:02:15 +0300 Subject: [PATCH 2/2] Create scx.logrotate --- services/openrc/scx.logrotate | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 services/openrc/scx.logrotate diff --git a/services/openrc/scx.logrotate b/services/openrc/scx.logrotate new file mode 100644 index 0000000..4f4750c --- /dev/null +++ b/services/openrc/scx.logrotate @@ -0,0 +1,6 @@ +/var/log/scx/*.log { + missingok + minsize 4M + notifempty + copytruncate +}