diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-10-10 22:27:30 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2008-10-10 22:27:30 -0700 |
commit | 0a60c68af7028fe58c3ece088c85fd3a04eb9a1f (patch) | |
tree | d6189083c3ea5814e208dffa20d381f2917ca4af /templates/system/syslog/file/node.def | |
parent | 499afdae260c9ac3f179f3fc204308eb2d57b796 (diff) | |
download | vyatta-cfg-system-0a60c68af7028fe58c3ece088c85fd3a04eb9a1f.tar.gz vyatta-cfg-system-0a60c68af7028fe58c3ece088c85fd3a04eb9a1f.zip |
Fix Bug 3751 configuring multiple global syslog facilities overwrites previous ones in /etc/syslog.conf
- multiple nodes configured under 'system syslog global' are appended to syslog.conf
- default '*.notice -/var/log/messages' is removed from syslog.conf if any
node is configured under 'system syslog global' and is put back when nothing
configured under 'system syslog global'
- syslog process only restarted once after making all changes in config
- added commit checks at 'system syslog <>' level nodes to specify facility
Diffstat (limited to 'templates/system/syslog/file/node.def')
-rw-r--r-- | templates/system/syslog/file/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/syslog/file/node.def b/templates/system/syslog/file/node.def index e2c7759f..a1ac1c4d 100644 --- a/templates/system/syslog/file/node.def +++ b/templates/system/syslog/file/node.def @@ -2,4 +2,4 @@ tag: type: txt help: Set the name of syslog file to save log messages to syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9_.]+$" ; "invalid file name $VAR(@)" -commit:expression: $VAR(./facility/) != "" || $VAR(./archive/) != ""; "Must specify either facility or archive for syslog file" +commit:expression: $VAR(./@/facility/@@) != ""; "Atleast one facility must be configured to log messages to file $VAR(./@)" |