hilfe mein git ist komisch
This commit is contained in:
9
etc/logrotate.d/alternatives
Normal file
9
etc/logrotate.d/alternatives
Normal file
@@ -0,0 +1,9 @@
|
||||
/var/log/alternatives.log {
|
||||
monthly
|
||||
rotate 12
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 644 root root
|
||||
}
|
||||
18
etc/logrotate.d/apache2
Normal file
18
etc/logrotate.d/apache2
Normal file
@@ -0,0 +1,18 @@
|
||||
/var/log/apache2/*.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 14
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 640 root adm
|
||||
sharedscripts
|
||||
prerotate
|
||||
if [ -d /etc/logrotate.d/httpd-prerotate ]; then
|
||||
run-parts /etc/logrotate.d/httpd-prerotate
|
||||
fi
|
||||
endscript
|
||||
postrotate
|
||||
/opt/psa/admin/sbin/httpdmng --reload > /dev/null 2>/dev/null || true
|
||||
endscript
|
||||
}
|
||||
9
etc/logrotate.d/apport
Normal file
9
etc/logrotate.d/apport
Normal file
@@ -0,0 +1,9 @@
|
||||
/var/log/apport.log {
|
||||
daily
|
||||
rotate 7
|
||||
delaycompress
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
}
|
||||
|
||||
16
etc/logrotate.d/apt
Normal file
16
etc/logrotate.d/apt
Normal file
@@ -0,0 +1,16 @@
|
||||
/var/log/apt/term.log {
|
||||
rotate 12
|
||||
monthly
|
||||
compress
|
||||
missingok
|
||||
notifempty
|
||||
}
|
||||
|
||||
/var/log/apt/history.log {
|
||||
rotate 12
|
||||
monthly
|
||||
compress
|
||||
missingok
|
||||
notifempty
|
||||
}
|
||||
|
||||
8
etc/logrotate.d/bootlog
Normal file
8
etc/logrotate.d/bootlog
Normal file
@@ -0,0 +1,8 @@
|
||||
/var/log/boot.log
|
||||
{
|
||||
missingok
|
||||
daily
|
||||
copytruncate
|
||||
rotate 7
|
||||
notifempty
|
||||
}
|
||||
7
etc/logrotate.d/btmp
Normal file
7
etc/logrotate.d/btmp
Normal file
@@ -0,0 +1,7 @@
|
||||
# no packages own btmp -- we'll rotate it here
|
||||
/var/log/btmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0660 root utmp
|
||||
rotate 1
|
||||
}
|
||||
11
etc/logrotate.d/cloud-init
Normal file
11
etc/logrotate.d/cloud-init
Normal file
@@ -0,0 +1,11 @@
|
||||
/var/log/cloud-init*.log
|
||||
{
|
||||
su root root
|
||||
missingok
|
||||
nocreate
|
||||
notifempty
|
||||
rotate 6
|
||||
compress
|
||||
delaycompress
|
||||
size 1M
|
||||
}
|
||||
9
etc/logrotate.d/dpkg
Normal file
9
etc/logrotate.d/dpkg
Normal file
@@ -0,0 +1,9 @@
|
||||
/var/log/dpkg.log {
|
||||
monthly
|
||||
rotate 12
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 644 root root
|
||||
}
|
||||
8
etc/logrotate.d/drweb-update
Normal file
8
etc/logrotate.d/drweb-update
Normal file
@@ -0,0 +1,8 @@
|
||||
/var/drweb/log/updater.log {
|
||||
missingok
|
||||
compress
|
||||
rotate 7
|
||||
daily
|
||||
size 512k
|
||||
copytruncate
|
||||
}
|
||||
6
etc/logrotate.d/drwebd
Normal file
6
etc/logrotate.d/drwebd
Normal file
@@ -0,0 +1,6 @@
|
||||
/var/drweb/log/drwebd.log {
|
||||
missingok
|
||||
compress
|
||||
rotate 7
|
||||
daily
|
||||
}
|
||||
59
etc/logrotate.d/mariadb
Normal file
59
etc/logrotate.d/mariadb
Normal file
@@ -0,0 +1,59 @@
|
||||
# This is the MariaDB configuration for the logrotate utility
|
||||
#
|
||||
# Note that on most Linux systems logs are written to journald, which has its
|
||||
# own rotation scheme.
|
||||
#
|
||||
# Read https://mariadb.com/kb/en/error-log/ to learn more about logging and
|
||||
# https://mariadb.com/kb/en/rotating-logs-on-unix-and-linux/ about rotating logs.
|
||||
|
||||
/var/lib/mysql/mysqld.log /var/lib/mysql/mariadb.log /var/log/mysql/*.log {
|
||||
|
||||
# Depends on a mysql@localhost unix_socket authenticated user with RELOAD privilege
|
||||
#su mysql mysql
|
||||
|
||||
# If any of the files listed above is missing, skip them silently without
|
||||
# emitting any errors
|
||||
missingok
|
||||
|
||||
# If file exists but is empty, don't rotate it
|
||||
notifempty
|
||||
|
||||
# Run monthly
|
||||
monthly
|
||||
|
||||
# Keep 6 months of logs
|
||||
rotate 6
|
||||
|
||||
# If file is growing too big, rotate immediately
|
||||
maxsize 500M
|
||||
|
||||
# If file size is too small, don't rotate at all
|
||||
minsize 50M
|
||||
|
||||
# Compress logs, as they are text and compression will save a lot of disk space
|
||||
compress
|
||||
|
||||
# Don't compress the log immediately to avoid errors about "file size changed while zipping"
|
||||
delaycompress
|
||||
|
||||
# Don't run the postrotate script for each file configured in this file, but
|
||||
# run it only once if one or more files were rotated
|
||||
sharedscripts
|
||||
|
||||
# After each rotation, run this custom script to flush the logs. Note that
|
||||
# this assumes that the mariadb-admin command has database access, which it
|
||||
# has thanks to the default use of Unix socket authentication for the 'mysql'
|
||||
# (or root on Debian) account used everywhere since MariaDB 10.4.
|
||||
postrotate
|
||||
if test -r /etc/mysql/debian.cnf
|
||||
then
|
||||
EXTRAPARAM='--defaults-file=/etc/mysql/debian.cnf'
|
||||
fi
|
||||
|
||||
if test -x /usr/bin/mariadb-admin
|
||||
then
|
||||
/usr/bin/mariadb-admin $EXTRAPARAM --local flush-error-log \
|
||||
flush-engine-log flush-general-log flush-slow-log
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
13
etc/logrotate.d/monit
Normal file
13
etc/logrotate.d/monit
Normal file
@@ -0,0 +1,13 @@
|
||||
/var/log/monit.log {
|
||||
rotate 4
|
||||
weekly
|
||||
minsize 1M
|
||||
missingok
|
||||
create 640 root adm
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
postrotate
|
||||
invoke-rc.d monit reload > /dev/null
|
||||
endscript
|
||||
}
|
||||
18
etc/logrotate.d/nginx
Normal file
18
etc/logrotate.d/nginx
Normal file
@@ -0,0 +1,18 @@
|
||||
/var/log/nginx/*.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 14
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 0640 www-data adm
|
||||
sharedscripts
|
||||
prerotate
|
||||
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
|
||||
run-parts /etc/logrotate.d/httpd-prerotate; \
|
||||
fi \
|
||||
endscript
|
||||
postrotate
|
||||
invoke-rc.d nginx rotate >/dev/null 2>&1
|
||||
endscript
|
||||
}
|
||||
14
etc/logrotate.d/passenger
Normal file
14
etc/logrotate.d/passenger
Normal file
@@ -0,0 +1,14 @@
|
||||
/var/log/passenger/*.log {
|
||||
copytruncate
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
}
|
||||
|
||||
/var/log/passenger-analytics/*.log {
|
||||
missingok
|
||||
notifempty
|
||||
sharedscripts
|
||||
compress
|
||||
delaycompress
|
||||
}
|
||||
13
etc/logrotate.d/php8.3-fpm
Normal file
13
etc/logrotate.d/php8.3-fpm
Normal file
@@ -0,0 +1,13 @@
|
||||
/var/log/php8.3-fpm.log {
|
||||
rotate 12
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
postrotate
|
||||
if [ -x /usr/lib/php/php8.3-fpm-reopenlogs ]; then
|
||||
/usr/lib/php/php8.3-fpm-reopenlogs;
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
15
etc/logrotate.d/plesk
Normal file
15
etc/logrotate.d/plesk
Normal file
@@ -0,0 +1,15 @@
|
||||
/var/log/plesk/*.log /var/log/plesk/httpsd_access_log {
|
||||
missingok
|
||||
daily
|
||||
rotate 3
|
||||
size 10M
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
|
||||
/var/log/plesk/install/*.log {
|
||||
missingok
|
||||
rotate 3
|
||||
size 10M
|
||||
compress
|
||||
}
|
||||
10
etc/logrotate.d/plesk-php74
Normal file
10
etc/logrotate.d/plesk-php74
Normal file
@@ -0,0 +1,10 @@
|
||||
/var/log/plesk-php74-fpm/*log {
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
sharedscripts
|
||||
delaycompress
|
||||
postrotate
|
||||
/bin/kill -SIGUSR1 `cat /run/plesk-php74-fpm.pid 2>/dev/null` 2>/dev/null || true
|
||||
endscript
|
||||
}
|
||||
11
etc/logrotate.d/proxmox-vm
Normal file
11
etc/logrotate.d/proxmox-vm
Normal file
@@ -0,0 +1,11 @@
|
||||
su root root
|
||||
/var/log/proxmox-vm.log {
|
||||
daily
|
||||
rotate 7
|
||||
size 50M
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
||||
18
etc/logrotate.d/rsyslog
Normal file
18
etc/logrotate.d/rsyslog
Normal file
@@ -0,0 +1,18 @@
|
||||
/var/log/syslog
|
||||
/var/log/mail.log
|
||||
/var/log/kern.log
|
||||
/var/log/auth.log
|
||||
/var/log/user.log
|
||||
/var/log/cron.log
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/lib/rsyslog/rsyslog-rotate
|
||||
endscript
|
||||
}
|
||||
8
etc/logrotate.d/sw-cp-server
Normal file
8
etc/logrotate.d/sw-cp-server
Normal file
@@ -0,0 +1,8 @@
|
||||
/var/log/sw-cp-server/error_log /var/log/sw-cp-server/access.log {
|
||||
copytruncate
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
}
|
||||
8
etc/logrotate.d/sw-engine
Normal file
8
etc/logrotate.d/sw-engine
Normal file
@@ -0,0 +1,8 @@
|
||||
/var/log/sw-cp-server/sw-engine.log {
|
||||
copytruncate
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
}
|
||||
12
etc/logrotate.d/ubuntu-pro-client
Normal file
12
etc/logrotate.d/ubuntu-pro-client
Normal file
@@ -0,0 +1,12 @@
|
||||
# use the root group by default, since this is the owning group
|
||||
# of /var/log/ubuntu-advantage*.log files.
|
||||
/var/log/ubuntu-advantage*.log {
|
||||
su root root
|
||||
create 0644 root root
|
||||
rotate 6
|
||||
monthly
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
}
|
||||
13
etc/logrotate.d/ufw
Normal file
13
etc/logrotate.d/ufw
Normal file
@@ -0,0 +1,13 @@
|
||||
/var/log/ufw.log
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
[ -x /usr/lib/rsyslog/rsyslog-rotate ] && /usr/lib/rsyslog/rsyslog-rotate || true
|
||||
endscript
|
||||
}
|
||||
10
etc/logrotate.d/unattended-upgrades
Normal file
10
etc/logrotate.d/unattended-upgrades
Normal file
@@ -0,0 +1,10 @@
|
||||
/var/log/unattended-upgrades/unattended-upgrades.log
|
||||
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
|
||||
/var/log/unattended-upgrades/unattended-upgrades-shutdown.log
|
||||
{
|
||||
rotate 6
|
||||
monthly
|
||||
compress
|
||||
missingok
|
||||
notifempty
|
||||
}
|
||||
8
etc/logrotate.d/wtmp
Normal file
8
etc/logrotate.d/wtmp
Normal file
@@ -0,0 +1,8 @@
|
||||
# no packages own wtmp -- we'll rotate it here
|
||||
/var/log/wtmp {
|
||||
missingok
|
||||
monthly
|
||||
create 0664 root utmp
|
||||
minsize 1M
|
||||
rotate 1
|
||||
}
|
||||
Reference in New Issue
Block a user