diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-17 18:45:17 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-17 18:45:17 -0700 |
commit | be79ca9ff0b67565870a18fa2ddadd09deb934a1 (patch) | |
tree | f54f40c106e66652fada7f08b9117d4753b6f65b /scripts | |
parent | 8dc3dcf797dee1b498157f986619524b0caff182 (diff) | |
download | vyatta-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.pl | 7 | ||||
-rw-r--r-- | scripts/system/vyatta_update_syslog.pl | 7 |
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; } |