saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2023-02-09 14:51:39 +02:00
parent f150a7c81b
commit 4911d0453d
112 changed files with 4799 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
/var/log/cloudlinux-backup-mysql-freeze.log
/var/log/cloudlinux-backup-utils-cron.log
/var/log/cloudlinux-backup-utils.log
{
rotate 3
maxsize 50M
compress
delaycompress
create 640 root root
missingok
}

17
logrotate.d/imunify360 Normal file
View File

@@ -0,0 +1,17 @@
/var/log/imunify360/captcha.log {
# Keep 3 lotated files before removal
rotate 3
maxsize 50M
hourly
compress
delaycompress
nocreate
missingok
postrotate
if systemctl status imunify360-captcha > /dev/null ; then \
systemctl restart imunify360-captcha > /dev/null; \
fi;
endscript
}

View File

@@ -0,0 +1,9 @@
/var/log/imunify360/pam.log {
missingok
notifempty
size 30k
create 0600 root root
postrotate
systemctl restart imunify360-pam > /dev/null
endscript
}

View File

@@ -0,0 +1,9 @@
/var/log/imunify360/imunify360-unified-access-logger/log.rotate {
missingok
notifempty
size 30k
create 0600 root root
postrotate
service imunify360-unified-access-logger restart
endscript
}

View File

@@ -0,0 +1,9 @@
/var/log/imunify360/wafd.log {
missingok
notifempty
size 30k
create 0600 root root
postrotate
service imunify360-wafd restart
endscript
}

View File

@@ -0,0 +1,15 @@
/var/log/imunify360-webshield/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 imunify360-webshield adm
sharedscripts
postrotate
if [ -f /var/run/imunify360-webshield.pid ]; then
kill -USR1 `cat /var/run/imunify360-webshield.pid`
fi
endscript
}

22
logrotate.d/ossec-hids Normal file
View File

@@ -0,0 +1,22 @@
/var/ossec/logs/active-responses.log {
missingok
notifempty
copytruncate
maxsize 100M
rotate 7
create 0664 ossec ossec
su ossec ossec
}
/var/ossec/logs/ossec.log {
missingok
notifempty
copytruncate
maxsize 100M
rotate 7
create 0664 ossec ossec
su ossec ossec
postrotate
/var/ossec/bin/ossec-control restart > /dev/null 2>/dev/null
endscript
}