Author |
Post |
|
#1 Sun Jul 25, 2010 08:19, 173 months ago.
|
Member
Registered: Jul 2010
Location: Russian Federation
|
Operating system name and version: FreeBSD 8.0 -- RELEASE Version of smsd: 3.1.5 Smsd installed from: FreeBSD Ports Collection Name and model of a modem / phone: Siemens C55 connected via original USB Data-cable Interface: USB Hello! Sometimes modem did not work and sms tools write in log file errors like How i can restart smsd auto-mode if errors above found in log file? Thanks for help, and sorry for my bad English
|
|
#2 Sun Jul 25, 2010 09:13, 173 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
You could define an alarmhandler. Create a script which detects that $6 contains "Could not send" and creates a "flag-file". Another script (running by cron) can monitor if the flag-file exists, and run /etc/init.d/sms3 restart if necessary. There is also a modem setting keep_open = no available, in some cases it may help. However, "Device not configured" comes from OS, and probably restarting smsd is not enough.
|