Author |
Post |
|
#1 Sat Sep 30, 2017 17:26, 80 months ago.
|
Member
Registered: Sep 2017
Location: Poland
|
Operating system name and version: ubuntu 16.04 Version of smsd: 3.1.15 Smsd installed from: package repository Name and model of a modem / phone: Option Globetrotter GIO225 Interface: /dev/ttyHS3
Hi there, Is this possible to run smsd in foreground other than with "-s" switch? With the "-s" switch the smsd is running in foreground but the "status" file is not updated. I've noticed that "terminal mode" make smsd run in foreground and "status" file is updated, but I'm not sure that this switch (terminal mode) is made for it ... I'm asking because some solutions (i.e. Docker, supervisord, ...) need process not to "demonize" Generally I need smsd to run is foreground and update "status" file.
|
|
#2 Sun Oct 01, 2017 19:33, 80 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
With the "-s" switch the status file is not updated because the status is printed to the console.
The "terminal mode" with "-t" should be good for you, because it prevents daemonizing. This mode was initially created for Windows users who want to run smsd as a Windows service, and your case sounds very similar.
|
|
#3 Mon Oct 02, 2017 05:02, 80 months ago.
|
Member
Registered: Sep 2017
Location: Poland
Topic owner
|
Thanks keke for the answer! I've found this information in release notes to 3.0.3 which I think should I read at first: Quote There is a command line switch -t available to force smsd to run in terminal (foreground). If logging or debugging messages are printed to the terminal, smsd runs in foreground by default. There is also TERMINAL keyword available in the Makefile to force smsd to run in foreground.
|