]> Frank Brehm's Git Trees - config/ns3/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Sun, 17 Nov 2019 09:28:25 +0000 (10:28 +0100)
committerFrank Brehm <frank@brehm-online.com>
Sun, 17 Nov 2019 09:28:25 +0000 (10:28 +0100)
cron.daily/logrotate
logrotate.d/alternatives
logrotate.d/dpkg

index 12bdc73f4f48e81781972a5a183b5927187c2316..016188e0cd66495b4ff7d4970121950d5d43aa6c 100755 (executable)
@@ -14,5 +14,5 @@ LOG=/var/log/logrotate.log
 echo >> ${LOG}
 echo "################################################" >> ${LOG}
 echo "[$(date --rfc-3339=seconds )]: Start Logrotating" >> ${LOG}
-/usr/sbin/logrotate -v /etc/logrotate.conf >> ${LOG} 2>&1
+/usr/sbin/logrotate /etc/logrotate.conf >> ${LOG} 2>&1
 echo "[$(date --rfc-3339=seconds )]: End Logrotating" >> ${LOG}
index 41c8a9c0a0f0b9836849d374fc0a4356d63fc530..e93576d1644d26341e74f20e632b9c232543ab7b 100644 (file)
@@ -1,9 +1,15 @@
 /var/log/alternatives.log {
-       monthly
-       rotate 12
-       compress
-       delaycompress
-       missingok
-       notifempty
-       create 644 root root
+    monthly
+    rotate 12
+    compress
+    delaycompress
+    missingok
+    notifempty
+    size 1M
+    create 644 root root
+    dateext
+    dateformat -%Y-%m-%d
+    olddir /var/log/.old
 }
+
+# vim: ts=4 filetype=conf et
index ee0d3e41906da354e120d6e153183587aa7ea038..20b2b6ecc43922887294980369a911f2ab744003 100644 (file)
     olddir /var/log/.old
 }
 
-/var/log/alternatives.log {
-    monthly
-    rotate 12
-    compress
-    delaycompress
-    missingok
-    notifempty
-    size 1M
-    create 644 root root
-    dateext
-    dateformat -%Y-%m-%d
-    olddir /var/log/.old
-}
-
 # vim: ts=4 filetype=conf et