File manager - Edit - /home/c14075/dragmet-ural.ru/www/logrotate.d.tar
Back
apache2.dpkg-dist 0000644 00000000661 15103474553 0007671 0 ustar 00 /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 if pgrep -f ^/usr/sbin/apache2 > /dev/null; then invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate fi endscript } dbconfig-common 0000644 00000000153 15103474553 0007536 0 ustar 00 /var/log/dbconfig-common/dbc.log { monthly rotate 12 missingok notifempty create 600 root root } php-error 0000644 00000000205 15103474553 0006411 0 ustar 00 /home/*/log/php-errors.log { daily missingok rotate 14 compress delaycompress notifempty sharedscripts } alternatives 0000644 00000000170 15103474553 0007175 0 ustar 00 /var/log/alternatives.log { monthly rotate 12 compress delaycompress missingok notifempty create 644 root root } btmp 0000644 00000000202 15103474553 0005432 0 ustar 00 # no packages own btmp -- we'll rotate it here /var/log/btmp { missingok monthly create 0660 root utmp rotate 1 } rsyslog 0000644 00000000566 15103474553 0006207 0 ustar 00 /var/log/syslog /var/log/mail.info /var/log/mail.warn /var/log/mail.err /var/log/mail.log /var/log/daemon.log /var/log/kern.log /var/log/auth.log /var/log/user.log /var/log/lpr.log /var/log/cron.log /var/log/debug /var/log/messages { rotate 4 weekly missingok notifempty compress delaycompress sharedscripts postrotate /usr/lib/rsyslog/rsyslog-rotate endscript } psaccu_atop 0000644 00000001111 15103474553 0006771 0 ustar 00 # Logrotate file to take action after psacct is rotated /var/log/atop/dummy_after { missingok daily rotate 0 nomail nocompress ifempty create 0600 root root postrotate if grep -q 'savelog.*/var/log/account/pacct' /etc/cron.daily/acct 2>/dev/null then # if the atop daemon does not run, restart it after # accounting file is rotated PIDFILE=/run/atop.pid if [ -e $PIDFILE ] && \ ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null then : else /usr/share/atop/atop.daily& fi fi endscript } apt 0000644 00000000255 15103474553 0005264 0 ustar 00 /var/log/apt/term.log { rotate 12 monthly compress missingok notifempty } /var/log/apt/history.log { rotate 12 monthly compress missingok notifempty } mysql-server 0000644 00000001356 15103474553 0007154 0 ustar 00 # - I put everything in one block and added sharedscripts, so that mysql gets # flush-logs'd only once. # Else the binary logs would automatically increase by n times every day. # - The error log is obsolete, messages go to syslog now. /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/mariadb-slow.log /var/log/mysql/error.log { daily rotate 7 missingok create 640 mysql adm compress sharedscripts postrotate test -x /usr/bin/mysqladmin || exit 0 # check if server is running if mysqladmin ping > /dev/null 2>&1; then mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \ flush-engine-log flush-general-log flush-slow-log fi endscript } nginx 0000644 00000000511 15103474553 0005616 0 ustar 00 /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 } dpkg 0000644 00000000160 15103474553 0005420 0 ustar 00 /var/log/dpkg.log { monthly rotate 12 compress delaycompress missingok notifempty create 644 root root } psaccs_atop 0000644 00000002322 15103474553 0006774 0 ustar 00 # Logrotate file to take action before psacct is rotated /var/log/atop/dummy_before { missingok daily rotate 0 nomail nocompress ifempty create 0600 root root postrotate # check if process accounting is installed # if grep -q 'savelog' /etc/cron.daily/acct 2>/dev/null; then # check if process accounting is actually in use # # this is a heuristic that will fail once acct's cron.daily job changes # please file a bug report against atop if you encounter this ACCTFILE=$(sed -n "/savelog[^\/]\+\(\/[[:alnum:]\/]\+\).*/{s//\1/;p;q;}" /etc/cron.daily/acct) if [ -f "$ACCTFILE" ] then ACCTSIZE1=`ls -l "$ACCTFILE" | awk '{print $5}'` ACCTSIZE2=`ls -l "$ACCTFILE" | awk '{print $5}'` if [ $ACCTSIZE1 -lt $ACCTSIZE2 ] then # stop atop daemon before accounting file # is rotated # PIDFILE=/run/atop.pid if [ -e $PIDFILE ] && \ ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null then kill -USR2 `cat $PIDFILE` # take final sample rm $PIDFILE sleep 1 fi fi fi fi endscript } apache2 0000644 00000000725 15103474553 0006005 0 ustar 00 /var/log/apache2/*.log /var/log/apache2/user-logs/*/*.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 if pgrep -f ^/usr/sbin/apache2 > /dev/null; then invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate fi endscript } wtmp 0000644 00000000221 15103474553 0005460 0 ustar 00 # no packages own wtmp -- we'll rotate it here /var/log/wtmp { missingok monthly create 0664 root utmp minsize 1M rotate 1 }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings