This commit is contained in:
pepe 2023-07-26 21:30:10 +00:00
parent 45d351065a
commit 7b542c471b
3 changed files with 31 additions and 0 deletions

3
sysklogd.confd3 Normal file
View File

@ -0,0 +1,3 @@
# Config file for /etc/init.d/sysklogd
SYSLOGD="-m 0 -s -s -r 10M:10"

8
sysklogd.logrotate Normal file
View File

@ -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
}

20
sysklogd.rc10 Normal file
View File

@ -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 $?
}