diff options
-rwxr-xr-x | scripts/system/vyatta_update_logrotate.pl | 1 | ||||
-rw-r--r-- | templates/system/syslog/node.def | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/system/vyatta_update_logrotate.pl b/scripts/system/vyatta_update_logrotate.pl index 05867658..8620ede1 100755 --- a/scripts/system/vyatta_update_logrotate.pl +++ b/scripts/system/vyatta_update_logrotate.pl @@ -40,6 +40,7 @@ if ($set == 1) { $log_file { missingok notifempty + create rotate $files size=${size}k } diff --git a/templates/system/syslog/node.def b/templates/system/syslog/node.def index ebe02232..81fb3f6c 100644 --- a/templates/system/syslog/node.def +++ b/templates/system/syslog/node.def @@ -1,5 +1,5 @@ priority: 400 help: System logging daemon end: if /opt/vyatta/sbin/vyatta_update_syslog.pl; then - sudo /usr/sbin/invoke-rc.d rsyslog reload || sudo /usr/sbin/invoke-rc.d rsyslog restart + sudo /usr/sbin/invoke-rc.d rsyslog restart fi |