Auf meinem Debian8 Rechner erscheint irgendwann im syslog folgendes
Code: Alles auswählen
Feb 19 08:22:42 server kernel: [85292.747661] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:24:07 server kernel: [85377.843308] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:24:33 server kernel: [85403.346384] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:25:32 server kernel: [85462.943046] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:25:58 server kernel: [85488.285971] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:26:58 server kernel: [85548.066574] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:27:23 server kernel: [85573.241706] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:28:23 server kernel: [85633.182317] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:28:51 server kernel: [85661.718131] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:29:48 server kernel: [85718.297821] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:30:15 server kernel: [85745.329323] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:31:13 server kernel: [85803.401452] Bluetooth: hci0 command 0x0419 tx timeout
Feb 19 08:31:38 server kernel: [85828.948541] Bluetooth: hci0 command 0x0419 tx timeout
bisher half nur ein neustart..
Jetzt versuchge ich mittels "swatch" das syslog aus zulesen und nach Bluetooth zu durchsuchen.
swatch.conf:
Code: Alles auswählen
#
# Swatch Konfigurations Datei
#
# Zweck = in Log Dateien bestimmte Ereignisse finden
# und dann bestimmte Aktionen ausführen.
# ------------------------------
#
################################
watchfor /Bluetooth/
exec "sh /opt/script/test"
Code: Alles auswählen
service rsyslog stop
cp /var/log/syslog /var/log/syslog_sic
cp /var/log/syslog /var/log/syslog_2
awk '! /Bluetooth/ {rint $0}' /var/log/syslog_2 > /var/log/syslog_3
cp /var/log/syslog_3 /var/log/syslog
wait 5
service rsyslog start
##################
# option wenn alles funktioniert
# shutdown -r now
##################
exit
kopiere ich im laufendem Betrieb die Syslog mittels
Code: Alles auswählen
cp /var/log/syslog_3 /var/log/syslog
also per script kommt immer eine syslog ohne inhalt .
??
hat einer dafür eine Erklärung ?