From 7b542c471bcfb9db9850fa1701f321671d73bc93 Mon Sep 17 00:00:00 2001 From: pepe Date: Wed, 26 Jul 2023 21:30:10 +0000 Subject: [PATCH] :( --- sysklogd.confd3 | 3 +++ sysklogd.logrotate | 8 ++++++++ sysklogd.rc10 | 20 ++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 sysklogd.confd3 create mode 100644 sysklogd.logrotate create mode 100644 sysklogd.rc10 diff --git a/sysklogd.confd3 b/sysklogd.confd3 new file mode 100644 index 0000000..d897c9e --- /dev/null +++ b/sysklogd.confd3 @@ -0,0 +1,3 @@ +# Config file for /etc/init.d/sysklogd + +SYSLOGD="-m 0 -s -s -r 10M:10" diff --git a/sysklogd.logrotate b/sysklogd.logrotate new file mode 100644 index 0000000..8148a2a --- /dev/null +++ b/sysklogd.logrotate @@ -0,0 +1,8 @@ +/var/log/auth.log /var/log/daemon.log /var/log/debug /var/log/kern.log /var/log/lpr.log /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn /var/log/messages /var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice /var/log/syslog /var/log/user.log { + create 640 root root + sharedscripts + missingok + postrotate + /etc/init.d/sysklogd -q reload + endscript +} diff --git a/sysklogd.rc10 b/sysklogd.rc10 new file mode 100644 index 0000000..749f87f --- /dev/null +++ b/sysklogd.rc10 @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +extra_started_commands="reload" +pidfile="/run/${RC_SVCNAME}.pid" +command="/usr/sbin/syslogd" +command_background="true" +command_args="-F ${SYSLOGD}" + +depend() { + need clock hostname + provide logger +} + +reload() { + ebegin "Reloading configuration" + start-stop-daemon --signal HUP --pidfile ${pidfile} + eend $? +}