Author |
Post |
|
#1 Fri Oct 16, 2009 15:03, 183 months ago.
|
Member
Registered: Oct 2009
Location: Malaysia
|
I am facing a problem like this after i upgrade to 3.1.5. smsd runs well in my server in 3.1.3 version. but cannot run in new version please help
root@xxxxxx [~/goodies/smstools3]# /etc/init.d/sms3 start Starting SMS Daemon: sh: /tmp/smsd_script.3TskpW: Permission denied Shell /bin/sh testing failed: Failed to execute test script. There was 1 major problem found. Cannot start. See the log file for details. smsd failed.
i attach the smsd.log file:
2009-10-16 22:02:33,2, smsd: Smsd v3.1.5 started. 2009-10-16 22:02:33,2, smsd: Running as root:root. 2009-10-16 22:02:33,7, smsd: Running startup_check (shell): /tmp/smsd_script.FvphNS /tmp/smsd_data.cPCu0N 2009-10-16 22:02:33,3, smsd: Done: startup_check (shell), execution time 0 sec., status: 32256 2009-10-16 22:02:33,2, smsd: Shell /bin/sh testing failed: Failed to execute test script. 2009-10-16 22:02:33,2, smsd: There was 1 major problem found. 2009-10-16 22:02:33,2, smsd: Smsd mainprocess terminated.
|
|
#2 Fri Oct 16, 2009 15:17, 183 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
What operating system you are running, name and version?
|
|
#3 Sat Oct 17, 2009 04:27, 183 months ago.
|
Member
Registered: Oct 2009
Location: Malaysia
Topic owner
|
2.6.21-1.3194.fc7
|
|
#4 Sat Oct 17, 2009 16:16, 183 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
I did not yet find out the actual reason for sure, but as a workaround include this setting in the global part of smsd.conf: executable_check = no
If the smsd still cannot run properly, please let me know with all possible details.
|
|
#5 Sat Oct 17, 2009 20:08, 183 months ago.
|
Member
Registered: Oct 2009
Location: Malaysia
Topic owner
|
Thanks! it works!
But anyhow, why the smsd cannot test the file? what does that test means for, when i disabled it, does it okay in the future?
|
|
#6 Mon Oct 19, 2009 19:15, 183 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Executable_check is a part of startup checking where smsd tries to detect any possible trouble which may cause failure when smsd is running. For example, if an eventhandler is not executable for smsd, it will cause a failure when it is called later.
I know that 3.1.5 is running on Fedora, but I do not know what version of it.
Probably there in your system is some security feature which prevents to run scripts in the /tmp directory. Can you test this with some simple script, like: #!/bin/sh echo OK
After chmod 700, can it be run?
If you can modify sources of smsd, you could change the smsd_cfg.c. There are two lines with "/tmp" string:
sprintf(tmp_data, "%s/smsd_data.XXXXXX", "/tmp"); sprintf(tmp_script, "%s/smsd_script.XXXXXX", "/tmp");
If you change both "/tmp" to "/var/spool/sms" and recompile and run without executable_check = no setting, does it make any difference?
|