Operating system name and version: 2.6.32-34-server #77-Ubuntu SMP Tue Sep 13 20:54:38 UTC 2011 x86_64 GNU/Linux
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: FALCOM TANGO-55 RS-232
Interface: mos7720 Moschip 2 port adapter converter USB-RS232

Well this is regarding this message (can't answer as it has been locked).

My USB ports sometimes disconnect (happened only twice this year).
I wanted to try the keke's script, but I haven't been able to make it run :?
So here is the one I've used : smsd_check.sh (run by a cron every minute)
#!/bin/sh

SMSTOOLS_STOP="/etc/init.d/sms3 stop"
SMSTOOLS_START="/etc/init.d/sms3 start"

if ps ax | grep -v grep | grep 'smsd -n MAINPROCESS' > /dev/null
then
  echo "smsd OK" > /dev/null
else
  $SMSTOOLS_STOP > /dev/null
  $SMSTOOLS_START > /dev/null
fi

if ps ax | grep -v grep | grep 'GSM1_' > /dev/null
then
  echo "smsd OK" > /dev/null
else
  $SMSTOOLS_STOP > /dev/null
  $SMSTOOLS_START > /dev/null
fi
'bash' Syntax Highlight powered by GeSHi


Then I tried to disconnect the USB port from server, wait a few seconds, plug it again.
The bad thing is that GSM1 was still running (so the script can't restart sms3) and I had in the smsd.log

Could someone give some tracks on how I might detect this error then restart smsd ?