SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Mon Jun 24, 2024 13:32
SMSTools3 Community » Help and support Bottom

[answered] Run smsd in foreground

Login and Post Reply

Page:  1

Author Post
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.

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.

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.


Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.