diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-08 17:11:30 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-08 17:11:30 -0700 |
commit | 8c76eecf50f943b0a7e759f398f6d16dac53dac0 (patch) | |
tree | fd3994149511fed21d09d2ff5ec2b3339535e5f1 /scripts/system/vyatta_update_logrotate.pl | |
parent | cbc9578ade6afaf6db039401182b6cfe14e73ff9 (diff) | |
download | vyatta-cfg-quagga-8c76eecf50f943b0a7e759f398f6d16dac53dac0.tar.gz vyatta-cfg-quagga-8c76eecf50f943b0a7e759f398f6d16dac53dac0.zip |
Convert from syslog to rsyslog
Configuration file is /etc/rsyslog.conf and it is supports
directory of include parameters so do not need to edit
rsyslog.conf directly
Diffstat (limited to 'scripts/system/vyatta_update_logrotate.pl')
-rwxr-xr-x | scripts/system/vyatta_update_logrotate.pl | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/scripts/system/vyatta_update_logrotate.pl b/scripts/system/vyatta_update_logrotate.pl index d7649496..6e5c20cd 100755 --- a/scripts/system/vyatta_update_logrotate.pl +++ b/scripts/system/vyatta_update_logrotate.pl @@ -35,17 +35,12 @@ $log_file { rotate $files size=${size}k postrotate - kill -HUP `cat /var/run/syslogd.pid` + kill -HUP `cat /var/run/rsyslogd.pid` endscript } EOF } close $out; -sleep 1; -if (system("/usr/sbin/invoke-rc.d sysklogd restart")) { - exit 4; -} - -exit 0; - +exec '/usr/sbin/invoke-rc.d', 'rsyslog', 'restart'; +exit 4; |