Skip to content

Commit 713261d

Browse files
committed
(rsyslog::config::actions) stop writing to /-/var/log/maillog
The leading "-" in rsyslog was an old way to disable sync-on-write. However, this has been off by default since rsyslog v3 (c 2008). It seems that in practice the result has been to write maillog to "/-/var/log/maillog". Perhaps the special meaning of a leading "-" was dropped sometime in the past decade. Ref: https://lsstc.slack.com/archives/C06V270ECBW/p1717180543799339 https://serverfault.com/questions/463170/what-does-filepath-action-mean-in-rsyslog-configuration https://www.rsyslog.com/doc/compatibility/v3compatibility.html#output-file-syncing
1 parent 7b9206e commit 713261d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hieradata/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ rsyslog::config::actions:
307307
type: "omfile"
308308
facility: "mail.*"
309309
config:
310-
file: "-/var/log/maillog"
310+
file: "/var/log/maillog"
311311
cron:
312312
type: "omfile"
313313
facility: "cron.*"

spec/support/spec/rsyslog.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
type: 'omfile',
4040
facility: 'mail.*',
4141
config: {
42-
'file' => '-/var/log/maillog',
42+
'file' => '/var/log/maillog',
4343
},
4444
)
4545
end

0 commit comments

Comments
 (0)