starting syslogd when network ready

johnbock

Mitglied
Mitglied seit
2 Mrz 2008
Beiträge
310
Punkte für Reaktionen
0
Punkte
0
I don't have access to a serial interface on the 7270 while booting. I was wondering how/where can I start syslogd asap. I would like see what exactly my problem is when booting with ntfs.
 
There is no helper function to activate it earlier. If you want to start logging before the Freetz start scripts are run you have to put it in rc.S by your self.

Greets Oliver
 
There is no helper function to activate it earlier. If you want to start logging before the Freetz start scripts are run you have to put it in rc.S by your self.

Greets Oliver

What's the earliest I can start it?


P.S. Read the last line of my signature....
 
Ist mein Englisch so schlecht? :gruebel:
Der multid setzt das Netzwerk. Wenn wirklich übers Netzwerk geloggt werden soll, dann geht das erst danach. Kommt die Box denn hoch? Dann könntest du ja nach /var loggen und das ginge ab dem Punkt wo das in der rc.S gemountet wird.

MfG Oliver
 
Ist mein Englisch so schlecht? :gruebel:
No, no, your English is fine. I've also understood quite good.

Der multid setzt das Netzwerk. Wenn wirklich übers Netzwerk geloggt werden soll, dann geht das erst danach. Kommt die Box denn hoch? Dann könntest du ja nach /var loggen und das ginge ab dem Punkt wo das in der rc.S gemountet wird.
Nope the box reboots after about a minute, in any case there's not enough time to log in and capture the complete log before it reboots.

Keeping in mind I want to log the hotplug events do you think something like this is O.K.?
Code:
fritzbox@new-york:~/freetz/freetz-1.1_2183/build/modified/filesystem$ diff -Naur etc/init.d/rc.S.orig etc/init.d/rc.S
--- etc/init.d/rc.S.orig	2008-05-08 22:34:11.000000000 +0200
+++ etc/init.d/rc.S	2008-05-08 22:35:15.000000000 +0200
@@ -1197,27 +1197,6 @@
 fi
 modprobe dect_io
 sleep 2
-##########################################################################################
-## USB-Target-Funktion und Host Controller wg DECT nach CAPI starten
-##########################################################################################
-#! /bin/sh
-#########################
-#### USB-Host Config ####
-#########################
-## Taken from usb.pandu script:
-## Store 'clean' environment for later use (skipping IFS)
-set | grep -v "IFS="|grep "^[A-Z]"|sed "s/\(.*\)/export \1/" > /var/env.cache
-usb_mount() {
-mount -t usbfs usbfs /proc/bus/usb
-}
-/etc/hotplug/aura start
-if modprobe usbcore; then
-usb_mount
-/etc/init.d/rc.usbhost start
-fi
-###########################
-#### USB-Client Config ####
-###########################
 #########################################################################
 ## Set hostname
 #########################################################################
@@ -1247,6 +1226,28 @@
 ##########################################################################################
 modprobe kdsldmod
 /etc/init.d/rc.net
+/etc/init.d/rc.syslogd start
+##########################################################################################
+## USB-Target-Funktion und Host Controller wg DECT nach CAPI starten
+##########################################################################################
+#! /bin/sh
+#########################
+#### USB-Host Config ####
+#########################
+## Taken from usb.pandu script:
+## Store 'clean' environment for later use (skipping IFS)
+set | grep -v "IFS="|grep "^[A-Z]"|sed "s/\(.*\)/export \1/" > /var/env.cache
+usb_mount() {
+mount -t usbfs usbfs /proc/bus/usb
+}
+/etc/hotplug/aura start
+if modprobe usbcore; then
+usb_mount
+/etc/init.d/rc.usbhost start
+fi
+###########################
+#### USB-Client Config ####
+###########################
 #########################################################################
 ## VoIP ( drivers etc. )
 #########################################################################
and
Code:
fritzbox@new-york:~/freetz/freetz-1.1_2183$ svn diff make/syslogd-cgi/syslogd-cgi.mk 
Index: make/syslogd-cgi/syslogd-cgi.mk
===================================================================
--- make/syslogd-cgi/syslogd-cgi.mk	(revision 2183)
+++ make/syslogd-cgi/syslogd-cgi.mk	(working copy)
@@ -1,5 +1,4 @@
 $(call PKG_INIT_BIN,0.2.3)
-$(PKG)_STARTLEVEL=08
 
 $(PKG_UNPACKED)
 
Entweder so oder du kommentierst das USB-Zeug komplett aus und startest das in einer telnet Session?

MfG Oliver
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.