]> Frank Brehm's Git Trees - config/berta/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Mon, 29 Jan 2018 11:29:09 +0000 (12:29 +0100)
committerFrank Brehm <frank@brehm-online.com>
Mon, 29 Jan 2018 11:29:09 +0000 (12:29 +0100)
.etckeeper
rsyslog.d/50-default.conf
rsyslog.d/50-default.conf.default [new file with mode: 0644]
rsyslog.d/60-fb.conf

index e75d1522e8042b69748d1eaf7e0cf910b7e2f032..7b4a8351c9ad0f68d841862bdcaa9aacdf4be6c5 100755 (executable)
@@ -1880,6 +1880,7 @@ maybe chmod 0644 'rsyslog.conf'
 maybe chmod 0755 'rsyslog.d'
 maybe chmod 0644 'rsyslog.d/.keep_app-admin_rsyslog-0'
 maybe chmod 0644 'rsyslog.d/50-default.conf'
+maybe chmod 0644 'rsyslog.d/50-default.conf.default'
 maybe chmod 0644 'rsyslog.d/60-fb.conf'
 maybe chmod 0755 'runlevels'
 maybe chmod 0755 'runlevels/boot'
index c05ff4c10d5a0e1b27658e79f48715a90d02158a..561aa935b13b18df378e26ece4e3c5ce1939040c 100644 (file)
@@ -3,6 +3,7 @@
 #######################
 
 #auth,authpriv.* action(
+#      name="action_auth"
 #      type="omfile"
 #      File="/var/log/auth.log"
 #      FileCreateMode="0600"
@@ -12,6 +13,7 @@
 #)
 
 #cron.* action(
+#      name="action_cron"
 #      type="omfile"
 #      File="/var/log/cron.log"
 #      FileOwner="root"
@@ -19,6 +21,7 @@
 #)
 
 #daemon.* action(
+#      name="action_daemon"
 #      type="omfile"
 #      File="/var/log/daemon.log"
 #      FileOwner="root"
@@ -26,6 +29,7 @@
 #)
 
 #kern.* action(
+#      name="action_kern"
 #      type="omfile"
 #      File="/var/log/kern.log"
 #      FileOwner="root"
@@ -33,6 +37,7 @@
 #)
 
 #lpr.* action(
+#      name="action_lpr"
 #      type="omfile"
 #      File="/var/log/lpr.log"
 #      FileOwner="root"
@@ -40,6 +45,7 @@
 #)
 
 #mail.* action(
+#      name="action_mail"
 #      type="omfile"
 #      File="/var/log/mail.log"
 #      FileOwner="root"
@@ -47,6 +53,7 @@
 #)
 
 #news.* action(
+#      name="action_news"
 #      type="omfile"
 #      File="/var/log/news.log"
 #      FileOwner="root"
@@ -54,6 +61,7 @@
 #)
 
 #user.* action(
+#      name="action_user"
 #      type="omfile"
 #      File="/var/log/user.log"
 #      FileOwner="root"
@@ -61,6 +69,7 @@
 #)
 
 *.=debug;auth,authpriv,news,mail.none action(
+       name="action_debug"
        type="omfile"
        File="/var/log/debug.log"
        FileOwner="root"
@@ -68,6 +77,7 @@
 )
 
 *.info;auth,authpriv,cron,daemon,lpr,mail,news.none action(
+       name="action_messages"
        type="omfile"
        File="/var/log/messages"
        FileOwner="root"
@@ -78,6 +88,7 @@
 # deprecated "/var/log/syslog" log file (don't forget to re-enable log
 # rotation in "/etc/logrotate.d/rsyslog" if you do that!)
 #*.*;auth,authpriv.none action(
+#      name="action_syslog"
 #      type="omfile"
 #      File="/var/log/syslog"
 #      FileOwner="root"
@@ -85,6 +96,7 @@
 #)
 
 *.emerg action(
+       name="action_emerge"
        type="omusrmsg"
        Users="*"
        action.execOnlyOnceEveryInterval="10"
diff --git a/rsyslog.d/50-default.conf.default b/rsyslog.d/50-default.conf.default
new file mode 100644 (file)
index 0000000..920c214
--- /dev/null
@@ -0,0 +1,107 @@
+#######################
+### DEFAULT ACTIONS ###
+#######################
+
+auth,authpriv.* action(
+       name="action_auth"
+       type="omfile"
+       File="/var/log/auth.log"
+       FileCreateMode="0600"
+       FileOwner="root"
+       FileGroup="adm"
+       Sync="off"
+)
+
+cron.* action(
+       name="action_cron"
+       type="omfile"
+       File="/var/log/cron.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+daemon.* action(
+       name="action_daemon"
+       type="omfile"
+       File="/var/log/daemon.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+kern.* action(
+       name="action_kern"
+       type="omfile"
+       File="/var/log/kern.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+lpr.* action(
+       name="action_lpr"
+       type="omfile"
+       File="/var/log/lpr.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+mail.* action(
+       name="action_mail"
+       type="omfile"
+       File="/var/log/mail.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+news.* action(
+       name="action_news"
+       type="omfile"
+       File="/var/log/news.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+user.* action(
+       name="action_user"
+       type="omfile"
+       File="/var/log/user.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+*.=debug;auth,authpriv,news,mail.none action(
+       name="action_debug"
+       type="omfile"
+       File="/var/log/debug.log"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+*.info;auth,authpriv,cron,daemon,lpr,mail,news.none action(
+       name="action_messages"
+       type="omfile"
+       File="/var/log/messages"
+       FileOwner="root"
+       FileGroup="adm"
+)
+
+# Uncomment the following directive to re-enable the
+# deprecated "/var/log/syslog" log file (don't forget to re-enable log
+# rotation in "/etc/logrotate.d/rsyslog" if you do that!)
+#*.*;auth,authpriv.none action(
+#      name="action_syslog"
+#      type="omfile"
+#      File="/var/log/syslog"
+#      FileOwner="root"
+#      FileGroup="adm"
+#)
+
+*.emerg action(
+       name="action_emerge"
+       type="omusrmsg"
+       Users="*"
+       action.execOnlyOnceEveryInterval="10"
+)
+
+# Create an additional socket for the default chroot location
+# (used by net-misc/openssh[hpn], see https://bugs.gentoo.org/490744)
+input(type="imuxsock" Socket="/var/empty/dev/log")
index ce22dd5d13b7c540a0307132a444ef0aeb94ae9e..d279000a686ea185143a920742cfb6b8b0023574 100644 (file)
@@ -6,6 +6,7 @@ template (
 )
 
 *.* action(
+       name="action_facility"
         type="omfile"
         DynaFile="facility"
         DirCreateMode="0755"
@@ -15,6 +16,7 @@ template (
 )
 
 *.* action(
+       name="action_all"
         type="omfile"
         File="/var/log/all.log"
         FileOwner="root"
@@ -23,6 +25,7 @@ template (
 )
 
 *.warn;news,mail.none action(
+       name="action_tty12"
         type="omfile"
         File="/dev/tty12"
         FileOwner="root"