From 66671f93c8d696af4a606e816273aa3a35d7fb18 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 29 Mar 2013 08:56:27 -0700 Subject: syslog: fix channel syntax Bug 8813 Need to add omfile when referring to channel. --- scripts/system/vyatta_update_syslog.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/vyatta_update_syslog.pl b/scripts/system/vyatta_update_syslog.pl index 043f41e3..7d12284e 100755 --- a/scripts/system/vyatta_update_syslog.pl +++ b/scripts/system/vyatta_update_syslog.pl @@ -94,7 +94,7 @@ sub print_outchannel { # Force outchannel size to be 1k more than logrotate config to guarantee rotation $size = ($size + 5) * 1024; print $fh "\$outchannel $channel,$target,$size,/usr/sbin/logrotate ${LOGROTATE_CFG_DIR}/$channel\n"; - print $fh join( ';', @{ $entries{$target}{selector} } ), " \$$channel\n"; + print $fh join( ';', @{ $entries{$target}{selector} } ), " :omfile:\$$channel\n"; } my $config = new Vyatta::Config; -- cgit v1.2.3