diff options
Diffstat (limited to 'scripts/system/vyatta_update_logrotate.pl')
-rw-r--r-- | scripts/system/vyatta_update_logrotate.pl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/system/vyatta_update_logrotate.pl b/scripts/system/vyatta_update_logrotate.pl index 2740526..abc4a25 100644 --- a/scripts/system/vyatta_update_logrotate.pl +++ b/scripts/system/vyatta_update_logrotate.pl @@ -42,12 +42,7 @@ EOF close OUT; sleep 1; -# XXX somehow starting syslogd with 'start-stop-daemon --start...' here fails -# with SEGV (?). just start syslogd directly. -#if (system("/opt/vyatta/sbin/sysklogd.init restart")) { -system("/opt/vyatta/sbin/sysklogd.init stop"); -sleep 1; -if (system(". /etc/default/syslogd ; /sbin/syslogd \$SYSLOGD")) { +if (system("/usr/sbin/invoke-rc.d sysklogd restart")) { exit 4; } |