summaryrefslogtreecommitdiff
path: root/scripts/system/vyatta_update_logrotate.pl
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/system/vyatta_update_logrotate.pl
parent8dc3dcf797dee1b498157f986619524b0caff182 (diff)
downloadvyatta-cfg-be79ca9ff0b67565870a18fa2ddadd09deb934a1.tar.gz
vyatta-cfg-be79ca9ff0b67565870a18fa2ddadd09deb934a1.zip
use the default init scripts from ntp and sysklogd
Diffstat (limited to 'scripts/system/vyatta_update_logrotate.pl')
-rw-r--r--scripts/system/vyatta_update_logrotate.pl7
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;
}