Author |
Post |
|
#1 Tue May 14, 2013 05:44, 139 months ago.
|
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?
|
|
#2 Wed May 15, 2013 00:27, 139 months ago.
|
Member
Registered: May 2013
Location: Russian Federation
Topic owner
|
Problem solved, added "-f UTF-8" option to iconv command in sendsms script.
|
|
#3 Wed May 15, 2013 00:30, 139 months ago.
|
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.
|
|
#4 Wed Jan 08, 2014 07:08, 131 months ago.
|
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
|
|
#5 Sat Jan 18, 2014 16:04, 131 months ago.
|
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) !
|