summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-17 18:45:17 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-17 18:45:17 -0700
commitbe79ca9ff0b67565870a18fa2ddadd09deb934a1 (patch)
treef54f40c106e66652fada7f08b9117d4753b6f65b /scripts
parent8dc3dcf797dee1b498157f986619524b0caff182 (diff)
downloadvyatta-cfg-be79ca9ff0b67565870a18fa2ddadd09deb934a1.tar.gz
vyatta-cfg-be79ca9ff0b67565870a18fa2ddadd09deb934a1.zip
use the default init scripts from ntp and sysklogd
Diffstat (limited to 'scripts')
-rw-r--r--scripts/system/vyatta_update_logrotate.pl7
-rw-r--r--scripts/system/vyatta_update_syslog.pl7
2 files changed, 2 insertions, 12 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;
}
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;
}