<pre style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47,111,171);border-right-color:rgb(47,111,171);border-bottom-color:rgb(47,111,171);border-left-color:rgb(47,111,171);background-color:rgb(255,255,255);line-height:1.1em">
chown -R freeswitch:daemon /usr/local/freeswitch/
chmod -R o-rwx /usr/local/freeswitch/ </pre><div>And do not forget to change init script for user running FreeSWITCH.</div><br><div class="gmail_quote">13 февраля 2012 г. 17:10 пользователь Eugene Shcherbatyuk <span dir="ltr"><<a href="mailto:shcherbatyuk@belrosbank.by">shcherbatyuk@belrosbank.by</a>></span> написал:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For the sake of the rest of the list subscribers I would like to answer<br>
in English. More elaborate description of the problem follows.<br>
<br>
Installation went smooth. FS was configured to start as a daemon with<br>
freeswitch user privelegies and started fine at OS boot.<br>
<br>
Couple a days later I had downloaded some extra sound files and copied<br>
them into sounds directory. And all of sudden FS did not start after<br>
issuing '/etc/init.d/freeswitch restart' command. And it did not start<br>
after clean OS reboot. And it did not start from console in background<br>
mode (freeswitch -nc). And there was no output nor in system logs nor in<br>
FS own log file.<br>
<br>
Soon enough I have realised that copied files as root and ruined file<br>
permissions. After restoring file permissions command<br>
'/etc/init.d/freeswitch start' worked. But it worked only once:<br>
subsequent attempts to [re]start failed. The situation was reproducible.<br>
<br>
Finally I could get rid of the problem by setting FS directory ownership<br>
to root and starting FS as root in init script.<br>
<div class="im"><br>
<br>
On 13/02/12 14:59, Anton Kvashenkin wrote:<br>
> А в чём именно проблема, опиши немножко поконкретней, пожалуйста. Давай<br>
> сначала разберёмся с запуском FS просто из командной строки без всяких<br>
> инит скриптов. Попробуй запустить freeswitch -nc, вывод запости на<br>
> pasterbin.<br>
><br>
> 13 февраля 2012 г. 10:22 пользователь Eugene Shcherbatyuk<br>
</div>> <<a href="mailto:shcherbatyuk@belrosbank.by">shcherbatyuk@belrosbank.by</a> <mailto:<a href="mailto:shcherbatyuk@belrosbank.by">shcherbatyuk@belrosbank.by</a>>> написал:<br>
<div class="im">><br>
> Thank you for your answer!<br>
> Well, I use the latest git and init script from debian directory in the<br>
> sources.<br>
><br>
> Obviously, the problem is not solved at its roots yet, but I managed to<br>
> bypass it by 'chowning' FS directory and setting user to 'root' in init<br>
> script.<br>
><br>
> On 10/02/12 20:38, Anton Kvashenkin wrote:<br>
> > The first suggestion would be to use latest git and init script from<br>
> > <a href="http://wiki.freeswitch.org/wiki/Freeswitch_init" target="_blank">http://wiki.freeswitch.org/wiki/Freeswitch_init</a>.<br>
> ><br>
> > 10 февраля 2012 г. 15:53 пользователь Eugene Shcherbatyuk<br>
> > <<a href="mailto:shcherbatyuk@belrosbank.by">shcherbatyuk@belrosbank.by</a> <mailto:<a href="mailto:shcherbatyuk@belrosbank.by">shcherbatyuk@belrosbank.by</a>><br>
</div>> <mailto:<a href="mailto:shcherbatyuk@belrosbank.by">shcherbatyuk@belrosbank.by</a><br>
<div class="im">> <mailto:<a href="mailto:shcherbatyuk@belrosbank.by">shcherbatyuk@belrosbank.by</a>>>> написал:<br>
> ><br>
> > Hello,<br>
> ><br>
> > The purpose was to evaluate FreeSwitch and decide whether to<br>
> replace my<br>
> > Asterisks with it or not. I installed FS1.0.6 from git on Ubuntu<br>
> Server<br>
> > 10.04.3 LTS. Everything went smoothly until FS did not start with the<br>
> > system today.<br>
> ><br>
> > There are no errors in logs. FS starts in console fine. FS does not<br>
> > start in background mode nor from console (with -nc option) nor from<br>
> > init script. Even worse: FS can unexpectedly start (rarely) or do not<br>
> > start (often) with "backgrounding" message. Have a look at the<br>
> console<br>
> > output below, please.<br>
> ><br>
> > > root@fs:/usr/local/freeswitch/bin# /etc/init.d/freeswitch start<br>
> > > # ******* FS started without a message *********<br>
> > > root@fs:/usr/local/freeswitch/bin# netstat -ant<br>
> > > Active Internet connections (servers and established)<br>
> > > Proto Recv-Q Send-Q Local Address Foreign Address State<br>
> > > tcp 0 0 <a href="http://172.18.0.130:5060" target="_blank">172.18.0.130:5060</a> <<a href="http://172.18.0.130:5060" target="_blank">http://172.18.0.130:5060</a>><br>
> <<a href="http://172.18.0.130:5060" target="_blank">http://172.18.0.130:5060</a>> 0.0.0.0:* LISTEN<br>
> > > tcp 0 0 <a href="http://127.0.0.1:8021" target="_blank">127.0.0.1:8021</a> <<a href="http://127.0.0.1:8021" target="_blank">http://127.0.0.1:8021</a>><br>
> <<a href="http://127.0.0.1:8021" target="_blank">http://127.0.0.1:8021</a>> 0.0.0.0:* LISTEN<br>
</div>> > > tcp 0 0 <a href="http://0.0.0.0:22" target="_blank">0.0.0.0:22</a> <<a href="http://0.0.0.0:22" target="_blank">http://0.0.0.0:22</a>> <<a href="http://0.0.0.0:22" target="_blank">http://0.0.0.0:22</a>><br>
<div class="im">> 0.0.0.0:* LISTEN<br>
> > > tcp 0 0 <a href="http://172.18.0.130:5080" target="_blank">172.18.0.130:5080</a> <<a href="http://172.18.0.130:5080" target="_blank">http://172.18.0.130:5080</a>><br>
> <<a href="http://172.18.0.130:5080" target="_blank">http://172.18.0.130:5080</a>> 0.0.0.0:* LISTEN<br>
> > > tcp6 0 0 ::1:5060 :::* LISTEN<br>
> > > tcp6 0 0 :::22 :::* LISTEN<br>
> > > root@fs:/usr/local/freeswitch/bin# /etc/init.d/freeswitch stop<br>
> > > Killing: 850<br>
> > > root@fs:/usr/local/freeswitch/bin# /etc/init.d/freeswitch start<br>
> > > root@fs:/usr/local/freeswitch/bin# 923 Backgrounding.<br>
> > > # ****** Note message above *********<br>
> > > root@fs:/usr/local/freeswitch/bin# netstat -ant<br>
> > > Active Internet connections (servers and established)<br>
> > > Proto Recv-Q Send-Q Local Address Foreign Address State<br>
</div>> > > tcp 0 0 <a href="http://0.0.0.0:22" target="_blank">0.0.0.0:22</a> <<a href="http://0.0.0.0:22" target="_blank">http://0.0.0.0:22</a>> <<a href="http://0.0.0.0:22" target="_blank">http://0.0.0.0:22</a>><br>
<div class="HOEnZb"><div class="h5">> 0.0.0.0:* LISTEN<br>
> > > tcp6 0 0 :::22 :::* LISTEN<br>
> ><br>
> > Your opinions, please?<br>
> ><br>
> > Thank you in advance,<br>
> > Eugene<br>
> ><br>
><br>
<br>
<br>
=========================================================<br>
<br>
Данное сообщение и любые вложения («Сообщение») являются конфиденциальными, предназначенными исключительно для адресатов, и могут содержать сведения, охраняемые в соответствии с законодательством. Любое несанкционированное использование или распространение Сообщения запрещено. Электронная почта не гарантирует подлинности Сообщений. Ни ЗАО "АКБ "БЕЛРОСБАНК", ни любые его подразделения или дочерние организации не несут ответственности за Сообщение в случае его подмены, изменения либо фальсификации.<br>
<br>
=========================================================<br>
<br>
This message and any attachments (the “message”) are confidential, intended solely for the addressees, and may contain legally privileged information. Any unauthorized use or dissemination is prohibited. E-mails are susceptible to alteration. Neither JSC “BELROSBANK” nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.<br>
<br>
=========================================================<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>