summaryrefslogtreecommitdiff
path: root/scripts/system/vyatta_update_logrotate.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/system/vyatta_update_logrotate.pl')
-rwxr-xr-xscripts/system/vyatta_update_logrotate.pl11
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;