SMS Server Tools 3
 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. The forum is currently read-only, but will open soon. Wed Nov 06, 2024 02:55
SMSTools3 Community » Help and support Bottom

Correct autostart of smsd on Debian

Login and Post Reply

Page:  1

Author Post
Member
Registered:
May 2013
Location: Russian Federation
Operating system name and version: Debian 7
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem : Huawei e352
Interface: USB

I have working configuration, but it works only if I restart smsd manually (user:root), without restart I get error in smsd.log:


This is my regular_run script:


I've added path to sendsms (/usr/local/bin/sendsms), but then I get another error:


Again, if I restart smsd manually, everything works. Autostart enabled by command: update-rc.d sms3 defaults , maybe this is not correct? How to enable autorun smsd with root privileges?

Member
Registered:
May 2013
Location: Russian Federation
Topic owner
Problem solved, added "-f UTF-8" option to iconv command in sendsms script.

Member
Registered:
May 2013
Location: Russian Federation
Topic owner
Problem was in locale, default locale for daemon is POSIX, but text to send in UTF-8.

Member
Registered:
Jan 2014
Location: China
I have the same problem, and this is my solution:

in /etc/rc.local
LANG=en_HK.UTF-8
LANGUAGE=en_HK:en
export LANG
export LANGUAGE
/usr/local/bin/smsd

Member
Registered:
Jan 2014
Location: France
korotky wrote
I have working configuration, but it works only if I restart smsd manually (user:root), without restart I get error in smsd.log:


...

Again, if I restart smsd manually, everything works. Autostart enabled by command: update-rc.d sms3 defaults , maybe this is not correct? How to enable autorun smsd with root privileges?

try the secure solution :


or

try to pur regular_run in /usr/bin/ (but not as secure solution, all users on the server can run this script) !

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.