|-h, --help||Shows help.|
|Shows version information and compiled in features.|
Configuration file to use, default is /etc/gammu-smsdrc, on Windows there
is no default and configuration file path has to be always specified.
If you run SMSD as a system daemon (or service), it is recommended to use absolute path to configuration file as startup directory might be different than you expect.
See gammu-smsdrc for configuration file documentation.
|Lock file for storing pid, empty for no locking. Not supported on Windows.|
|Drop daemon privileges to chosen user after starting.|
|Drop daemon privileges to chosen group after starting.|
|Daemonize program on startup. Not supported on Windows.|
|Installs SMSD as a Windows service.|
|Uninstalls SMSD as a Windows service.|
|Starts SMSD Windows service.|
|Stops SMSD Windows service.|
|Terminate after defined number of failures. Use 0 to not terminate (this is default).|
|Kills itself after number of seconds.|
|Runs pogram as SMSD Windows service. This should not be used manually, but only Windows Service manager should use this command.|
|Defines name of a Windows service. Each service requires an unique name, so if you want to run several SMSD instances, you have to name each service differently. Default is "GammuSMSD".|
|Use logging as configured in config file (default).|
|Do not use logging as configured in config file.|
Installs Windows EventLog description to registry.
New in version 1.31.90.
Uninstalls Windows EventLog description to registry.
New in version 1.31.90.
SMSD can be controlled using following POSIX signals (if your platform supports this):
SIGHUP Reload configuration and reconnect to phone. SIGINT, SIGTERM Gracefully shutdown the daemon. SIGALRM Used internally for gammu-smsd -X SIGUSR1 Suspends SMSD operation, closing connection to phone and database. SIGUSR2 Resumes SMSD operation (after previous suspend).
Changed in version 1.22.91: Added support for SIGHUP.
Changed in version 1.22.95: Added support for SIGALRM.
Changed in version 1.31.90: Added support for SIGUSR1 and SIGUSR2.
Start SMSD as a daemon on Linux:
gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon
Start SMSD as a daemon on Linux with reduced privileges:
gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon --user gammu --group gammu
To use SMSD as a daemon, you might want to use init script which is shipped with Gammu in contrib/init directory. It is not installed by default, either install it manually or check INSTALL file for instructions.
Under Windows 7 you might need to disable UAC (user account control) before you will be able to install SMSD service.
Install Gammu SMSD Windows service:
gammu-smsd.exe -c c:\Gammu\smsdrc -i
Install two instances of SMSD Windows service:
gammu-smsd.exe -c c:\Gammu\smsdrc-1 -n Gammu-first-phone -i
gammu-smsd.exe -c c:\Gammu\smsdrc-2 -n Gammu-second-phone -i
To uninstall a Windows service:
If Gammu fails to start as a Windows service (you will usually get "Error 1053: The service did not respond to the start or control request in a timely fashion"), first check your SMSD logs. If they do not contain any useful hint, try starting SMSD manually with exactly same parameters as you installed the service (without -i).
For example the command line can look like:
gammu-smsd.exe -c smsdrc
You now should be able to get errors from SMSD even if it fails to start as a
You can not use same phone by more programs in same time. However in case you did not enable locking in [gammu] section, it might be able to start the communication with phone from more programs. In this case neither of the programs will probably work.
There is no way to detect that SMS message is reply to another by looking at message headers. The only way to achieve this is to add some token to the message and let the user include it in the message on reply.
Michal Čihař <email@example.com>
2009-2015, Michal Čihař <firstname.lastname@example.org>
|1.37.0||GAMMU-SMSD (1)||February 03, 2016|