GAMMU-SMSD(1) Gammu GAMMU-SMSD(1) (NAME) gammu-smsd - (Gammu) (SYNOPSIS) gammu-smsd [OPTION]... (DESCRIPTION) gammu-smsd . gammu-smsd GSM . (SIGHUP) SIGINT SIGTERM . ( ): -h, --help . -v, --version . -c, --config=file /etc/gammu-smsdrc . . SMSD ( ) . SMSD Configuration File <# gammu-smsdrc> . -p, --pid=file pid . . -U, --user=user . -G, --group=group . -d, --daemon . . -i, --install-service SMSD . -u, --uninstall-service SMSD . -s, --start-service SMSD. -k, --stop-service SMSD. -f, --max-failures=count . 0 (). -X, --suicide=seconds . -S, --run-service SMSD. (Windows Service Manager) . -n, --service-name=name . SMSD . "GammuSMSD" . -l, --use-log () (). -L, --no-use-log . -e, --install-event-log EventLog . 1.31.90. -E, --uninstall-event-log EventLog . 1.31.90. (SIGNALS) SMSD POSIX ( ): SIGHUP . SIGINT, SIGTERM (Graceful shutdown) . SIGALRM gammu-smsd -X SIGUSR1 SMSD . SIGUSR2 SMSD ( ). 1.22.91: SIGHUP . 1.22.95: SIGALRM . 1.31.90: SIGUSR1 SIGUSR2 . (EXAMPLES) / SMSD : gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon SMSD : gammu-smsd --config /etc/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemon --user gammu --group gammu SMSD SMSD init contrib/init Gammu . INSTALL . SMSD (UAC) . Gammu SMSD: gammu-smsd.exe -c c:\Gammu\smsdrc -i SMSD: 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 : gammu-smsd.exe -u Gammu ( "Error 1053: The service did not respond to the start or control request in a timely fashion" ) SMSD . SMSD ( -i) . : gammu-smsd.exe -c smsdrc SMSD . Gammu SMSD Gammu Gammu SMSD SMSD SIGUSR1 SIGUSR2 ( ): SMSD_PID=`pidof gammu-smsd` if [ -z "$SMSD_PID" ] ; then echo "Failed to figure out SMSD PID!" else kill -SIGUSR1 $SMSD_PID gammu identify kill -SIGUSR2 $SMSD_PID fi gammu-safe : #!/bin/bash SMSD_PID=`pidof gammu-smsd` if [ -z "$SMSD_PID" ] ; then gammu $@ else tty=$(lsof |grep -E "gammu-sms\s+$SMSD_PID\s+.*/dev/tty*"|awk {'print $NF'}) kill -SIGUSR1 $SMSD_PID while test "$(fuser $ttyfuser $tty 2> /dev/null|xargs)" = $SMSD_PID do sleep 1 done sleep 1 gammu $@ kill -SIGUSR2 $SMSD_PID while test "$(fuser $ttyfuser $tty 2> /dev/null|xargs)" != $SMSD_PID do sleep 1 done sleep 1 fi (KNOWN LIMITATIONS) . [gammu] <#section-[gammu]> . << Gammu SMSD>> . . . (AUTHORS) Michal Cihar (COPYRIGHT) 2009-2015, Michal Cihar 1.43.2 February 9, 2026 GAMMU-SMSD(1)