From be79ca9ff0b67565870a18fa2ddadd09deb934a1 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 17 Oct 2007 18:45:17 -0700 Subject: use the default init scripts from ntp and sysklogd --- scripts/system/vyatta_update_logrotate.pl | 7 +------ scripts/system/vyatta_update_syslog.pl | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) (limited to 'scripts') 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; } diff --git a/scripts/system/vyatta_update_syslog.pl b/scripts/system/vyatta_update_syslog.pl index 315e2a9..a55fe61 100644 --- a/scripts/system/vyatta_update_syslog.pl +++ b/scripts/system/vyatta_update_syslog.pl @@ -43,12 +43,7 @@ if ($update_line ne "") { 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 5; } -- cgit v1.2.3