Ich lasse eibd und Linknx auf einem Linksys WRT54GS mit OpenWRT laufen.
Die Kombinatioin funktioniert auch gut - wenn beide Programme gestartet wurden. Dafür habe ich in etc/init.d/eibd folgendes versucht:
Ohne den sleep befehl startet eibd nicht erfolgreich. Die 60 Sekunden reichen aber bei mir in jedem Fall. Hat jemand Erfahrung mit kleineren Werten?
Für Linknx versuche ich in etc/init.d/linknx das:
Der Start von Linknx kommt trotz der Startreihenfolge und des sleeps teilweise so früh, dass eibd noch nicht mit der Initialisierung fertig ist. In diesem Fall ist der Start nicht erfolgreich.
Daher habe ich einen Loop in das script eingefügt:
Jetzt hängt der komplette Systemstart. ps an der Konsole zeigt den sleep und das script selbst. Wenn wiederholt ps eingegeben wird, läuft es dann.
Über Beiträge zu dieser Hard- und Software- und OS-Kombination würde ich mich sehr freuen!
Viele Grüße,
fivesails
Die Kombinatioin funktioniert auch gut - wenn beide Programme gestartet wurden. Dafür habe ich in etc/init.d/eibd folgendes versucht:
Code:
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=90
start() {
sleep 60
eibd -D -S -T -d/dev/pts/0 -i -t2 -p /var/run/eibd.pid ft12:/dev/tts/1
}
stop() {
killall eibd
}
Für Linknx versuche ich in etc/init.d/linknx das:
Code:
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=97
start() {
sleep 60
linknx --config=/etc/config/linknx.xml --daemon=/tmp/log/linknx.log --pid-file=/tmp/run/linknx.pid
}
stop() {
killall linknx
}
Daher habe ich einen Loop in das script eingefügt:
Code:
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=97
start() {
echo testing, if linknx is running
if (ps w | grep -v grep | grep linknx.pid) then {
# linknx is running
echo linknx is running
} else {
# linknx is not running
echo linknx is not running
while (!(ps w | grep -v grep | grep linknx.pid)) do
echo attempting to start linknx.
linknx --config=/etc/config/linknx.xml --daemon=/tmp/log/linknx.log --pid-file=/tmp/run/linknx.pid
sleep 10
done
} fi
}
stop() {
killall linknx
}
Über Beiträge zu dieser Hard- und Software- und OS-Kombination würde ich mich sehr freuen!
Viele Grüße,
fivesails




Kommentar