Package: smstools
Version: 3.1.14-1
Severity: minor

Hi,

Smstools currently checks a couple of directories every x seconds.
That is inefficient:
 1. it doesn't react immediately on new outgoing sms messages, delaying their 
transmission
 2. it polls when it is not neccessary, using system resources

Regarding point 2: this is a real problem in situations where for example a 
simple server like a raspberry pi is used.

I suggest to use inotify: smstools can then sleep forever and as soon as a new 
file appears in its outbound directory, it is woken up immediately.
Of course it needs to explicitly scan the outbound directory when it starts up 
as new files may have appeared while it was not running.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages smstools depends on:
ii  adduser                      3.113       add and remove users and groups
ii  debconf                      1.5.41      Debian configuration management sy
ii  libc6                        2.13-24     Embedded GNU C Library: Shared lib
ii  libmm14                      1.4.2-4     Shared memory library - runtime
ii  ucf                          3.0025+nmu2 Update Configuration File: preserv

smstools recommends no packages.

smstools suggests no packages.

-- Configuration Files:
/etc/logrotate.d/smstools changed:
/var/log/smstools/smsd.log {
    rotate 2
    weekly
    compress
    missingok
    postrotate
        invoke-rc.d smstools reload > /dev/null
    endscript
}


-- debconf information:
  smstools/modems/deviceincoming1: true
  smstools/deviceincoming: true
  smstools/devicebaudrateother:
  smstools/modems/devicename1: GSM1
  smstools/devicebaudrate: 19200
  smstools/devicenodeother:
  smstools/configureanothermodem1: false
  smstools/modems/devicebaudrate1: 19200
* smstools/config_exist:
  smstools/devicename: GSM1
  smstools/configure: true
  smstools/devicenode:
  smstools/modems/devicenode1: /dev/ttyS0
  smstools/configureanothermodem: false
  smstools/deviceinit:
  smstools/modems/deviceinit1:
  smstools/eventhandler: /usr/local/sbin/sms_eventhandler


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to