]> Frank Brehm's Git Trees - config/sarah/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Wed, 3 Feb 2021 22:35:53 +0000 (23:35 +0100)
committerFrank Brehm <frank@brehm-online.com>
Wed, 3 Feb 2021 22:35:53 +0000 (23:35 +0100)
.etckeeper
logrotate.d/mysql-server
logrotate.d/rsyslog
logrotate.d/ulogd2
motd

index 5a2ba55c404233385f702782179e722cd691a0f6..93fb40d0eea8c75fff933a4b92bd5870b6d02118 100755 (executable)
@@ -1019,6 +1019,8 @@ maybe chmod 0644 'logcheck/ignore.d.workstation/mariadb-server-10_3'
 maybe chmod 0644 'login.defs'
 maybe chmod 0644 'logrotate.conf'
 maybe chmod 0755 'logrotate.d'
+maybe chmod 0755 'logrotate.d/.from-pkg'
+maybe chmod 0755 'logrotate.d/.from-pkg/2021-02-03'
 maybe chmod 0644 'logrotate.d/alternatives'
 maybe chmod 0644 'logrotate.d/apt'
 maybe chmod 0644 'logrotate.d/aptitude'
index 97f25f11963b635cb0926fede48d692411902ce1..39370f8685e000cfa6dad6ad65e8223184ea65c2 100644 (file)
        sharedscripts
        postrotate
                test -x /usr/bin/mysqladmin || exit 0
-               if [ -f `my_print_defaults --mysqld | grep -oP "pid-file=\K[^$]+"` ]; then
+               if [ -f `my_print_defaults --mysqld | grep -m 1 -oP "pid-file=\K.+$"` ]; then
                        # If this fails, check debian.conf!
-                       mysqladmin --defaults-file=/etc/mysql/debian.cnf flush-logs
+                       mysqladmin --defaults-file=/etc/mysql/debian.cnf --local flush-error-log \
+                               flush-engine-log flush-general-log flush-slow-log
                fi
        endscript
 }
index e74fa837c06d478a2bd76fc6090a787a74eea22a..0233a2fabc5aa597b718cf72633ecb74b6d6855e 100644 (file)
@@ -10,7 +10,7 @@
        olddir /var/log/.old
        sharedscripts
        postrotate
-               invoke-rc.d rsyslog rotate > /dev/null
+               /usr/lib/rsyslog/rsyslog-rotate
        endscript
 }
 
@@ -39,7 +39,7 @@
        olddir /var/log/.old
        sharedscripts
        postrotate
-               invoke-rc.d rsyslog rotate > /dev/null
+               /usr/lib/rsyslog/rsyslog-rotate
        endscript
 }
 
@@ -55,7 +55,7 @@
        olddir /var/log/syslog.d/.old
        sharedscripts
        postrotate
-               invoke-rc.d rsyslog rotate > /dev/null
+               /usr/lib/rsyslog/rsyslog-rotate
        endscript
 }
 
index c5083614579b60d8506cec5940d223de06dbfb19..c32076ba5fd8d2d0582de67cb701ed70461c1759 100644 (file)
     size 1M
     sharedscripts
     postrotate
-        invoke-rc.d ulogd2 reload > /dev/null
+        if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet ulogd2.service; then
+            systemctl kill --kill-who main --signal=SIGHUP ulogd2.service
+        else
+            invoke-rc.d ulogd2 reload > /dev/null
+        fi
     endscript
 }
 
diff --git a/motd b/motd
index 81c6f71c6d4fba801aecdcef1657ac5b1f1d9eaa..8d052318dabe949db97a385d669500affea11608 100644 (file)
--- a/motd
+++ b/motd
@@ -6,10 +6,8 @@ Debian GNU/Linux 10 (buster)
 |____/ \__,_|_|  \__,_|_| |_|
                              
 
-Kleine Mädchen scheinen am leichtesten gut erzogen, weil ihre Natur
-nicht heftig, sondern immer furchtsam ist und also jeden Schein der
-Erziehung leichter nachspiegelt.
-               -- Jean Paul
+Wußten Sie schon...
+... daß der Hintern zu sehen bleibt, wenn man den Kopf in den Sand steckt?
 
 Today is Prickle-Prickle, the 34th day of Chaos in the YOLD 3187