mirror of
https://github.com/openglow-org/forgefirm.git
synced 2026-09-28 17:11:15 -07:00
logging: default rules come from the init script, not a trailing fallback rule
rsyslog flagged the fallback action after the include as unreachable (the rendered rules end in stop). The forgefirm-logging init script now writes a default rules file when the render leaves none, and the shipped rsyslog.conf carries only the include.
This commit is contained in:
@@ -35,12 +35,8 @@ template(name="ff_line" type="list") {
|
||||
}
|
||||
|
||||
# The rendered per-logger rules (levels, remote target). Every message
|
||||
# is consumed there (each block ends in stop).
|
||||
# is consumed there (each block ends in stop). The forgefirm-logging
|
||||
# init script guarantees the file exists before this daemon starts: it
|
||||
# writes a default rules file (everything to system/, info and above)
|
||||
# if the render fails.
|
||||
include(file="/data/forgefirm/rsyslog-forgefirm.conf" mode="optional")
|
||||
|
||||
# Reached only if the rules file is missing (a boot where the render
|
||||
# failed): keep everything, on disk, at info and above.
|
||||
if $syslogseverity <= 6 then action(type="omfile"
|
||||
file="/data/log/forgefirm/system/system.log" template="ff_line"
|
||||
asyncWriting="on" flushOnTXEnd="off" flushInterval="1"
|
||||
fileCreateMode="0640" dirCreateMode="0755" createDirs="on")
|
||||
|
||||
Reference in New Issue
Block a user