diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-18 13:13:08 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-18 13:13:08 -0800 |
commit | 7b4251587a2465eccd511746c74bbe612d5434bf (patch) | |
tree | b9fb84536c267c16de187384922c0c49d47a7e4a /templates/system/syslog/file | |
parent | d7eaacabf16cd8ec8d23e0d1c0f6471707e07c88 (diff) | |
download | vyatta-cfg-system-7b4251587a2465eccd511746c74bbe612d5434bf.tar.gz vyatta-cfg-system-7b4251587a2465eccd511746c74bbe612d5434bf.zip |
Fix help for syslog
Bug 5396
Make it clear that 'syslog file' takes a file name not a full path.
Also make help text symmetrical for all logging options.
Diffstat (limited to 'templates/system/syslog/file')
-rw-r--r-- | templates/system/syslog/file/node.def | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/system/syslog/file/node.def b/templates/system/syslog/file/node.def index 098bad2f..ba2fa44f 100644 --- a/templates/system/syslog/file/node.def +++ b/templates/system/syslog/file/node.def @@ -1,7 +1,10 @@ tag: type: txt help: Logging to a file + syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9_.]+$" ; "invalid file name $VAR(@)" + commit:expression: $VAR(./@/facility/@@) != ""; \ "At least one facility must be configured to log messages to file $VAR(./@)" -val_help: Full path name of log file with leading slash + +val_help: Log file name in /var/log/user |