[Freeswitch-users] FreeSwitch does not start in the background -- bypassed
Anton Kvashenkin
anton.jugatsu at gmail.com
Wed Feb 15 08:51:21 MSK 2012
chown -R freeswitch:daemon /usr/local/freeswitch/
chmod -R o-rwx /usr/local/freeswitch/
And do not forget to change init script for user running FreeSWITCH.
13 февраля 2012 г. 17:10 пользователь Eugene Shcherbatyuk <
shcherbatyuk at belrosbank.by> написал:
> For the sake of the rest of the list subscribers I would like to answer
> in English. More elaborate description of the problem follows.
>
> Installation went smooth. FS was configured to start as a daemon with
> freeswitch user privelegies and started fine at OS boot.
>
> Couple a days later I had downloaded some extra sound files and copied
> them into sounds directory. And all of sudden FS did not start after
> issuing '/etc/init.d/freeswitch restart' command. And it did not start
> after clean OS reboot. And it did not start from console in background
> mode (freeswitch -nc). And there was no output nor in system logs nor in
> FS own log file.
>
> Soon enough I have realised that copied files as root and ruined file
> permissions. After restoring file permissions command
> '/etc/init.d/freeswitch start' worked. But it worked only once:
> subsequent attempts to [re]start failed. The situation was reproducible.
>
> Finally I could get rid of the problem by setting FS directory ownership
> to root and starting FS as root in init script.
>
>
> On 13/02/12 14:59, Anton Kvashenkin wrote:
> > А в чём именно проблема, опиши немножко поконкретней, пожалуйста. Давай
> > сначала разберёмся с запуском FS просто из командной строки без всяких
> > инит скриптов. Попробуй запустить freeswitch -nc, вывод запости на
> > pasterbin.
> >
> > 13 февраля 2012 г. 10:22 пользователь Eugene Shcherbatyuk
> > <shcherbatyuk at belrosbank.by <mailto:shcherbatyuk at belrosbank.by>>
> написал:
> >
> > Thank you for your answer!
> > Well, I use the latest git and init script from debian directory in
> the
> > sources.
> >
> > Obviously, the problem is not solved at its roots yet, but I managed
> to
> > bypass it by 'chowning' FS directory and setting user to 'root' in
> init
> > script.
> >
> > On 10/02/12 20:38, Anton Kvashenkin wrote:
> > > The first suggestion would be to use latest git and init script
> from
> > > http://wiki.freeswitch.org/wiki/Freeswitch_init.
> > >
> > > 10 февраля 2012 г. 15:53 пользователь Eugene Shcherbatyuk
> > > <shcherbatyuk at belrosbank.by <mailto:shcherbatyuk at belrosbank.by>
> > <mailto:shcherbatyuk at belrosbank.by
> > <mailto:shcherbatyuk at belrosbank.by>>> написал:
> > >
> > > Hello,
> > >
> > > The purpose was to evaluate FreeSwitch and decide whether to
> > replace my
> > > Asterisks with it or not. I installed FS1.0.6 from git on Ubuntu
> > Server
> > > 10.04.3 LTS. Everything went smoothly until FS did not start with
> the
> > > system today.
> > >
> > > There are no errors in logs. FS starts in console fine. FS does
> not
> > > start in background mode nor from console (with -nc option) nor
> from
> > > init script. Even worse: FS can unexpectedly start (rarely) or do
> not
> > > start (often) with "backgrounding" message. Have a look at the
> > console
> > > output below, please.
> > >
> > > > root at fs:/usr/local/freeswitch/bin# /etc/init.d/freeswitch start
> > > > # ******* FS started without a message *********
> > > > root at fs:/usr/local/freeswitch/bin# netstat -ant
> > > > Active Internet connections (servers and established)
> > > > Proto Recv-Q Send-Q Local Address Foreign Address State
> > > > tcp 0 0 172.18.0.130:5060 <http://172.18.0.130:5060>
> > <http://172.18.0.130:5060> 0.0.0.0:* LISTEN
> > > > tcp 0 0 127.0.0.1:8021 <http://127.0.0.1:8021>
> > <http://127.0.0.1:8021> 0.0.0.0:* LISTEN
> > > > tcp 0 0 0.0.0.0:22 <http://0.0.0.0:22> <http://0.0.0.0:22>
> > 0.0.0.0:* LISTEN
> > > > tcp 0 0 172.18.0.130:5080 <http://172.18.0.130:5080>
> > <http://172.18.0.130:5080> 0.0.0.0:* LISTEN
> > > > tcp6 0 0 ::1:5060 :::* LISTEN
> > > > tcp6 0 0 :::22 :::* LISTEN
> > > > root at fs:/usr/local/freeswitch/bin# /etc/init.d/freeswitch stop
> > > > Killing: 850
> > > > root at fs:/usr/local/freeswitch/bin# /etc/init.d/freeswitch start
> > > > root at fs:/usr/local/freeswitch/bin# 923 Backgrounding.
> > > > # ****** Note message above *********
> > > > root at fs:/usr/local/freeswitch/bin# netstat -ant
> > > > Active Internet connections (servers and established)
> > > > Proto Recv-Q Send-Q Local Address Foreign Address State
> > > > tcp 0 0 0.0.0.0:22 <http://0.0.0.0:22> <http://0.0.0.0:22>
> > 0.0.0.0:* LISTEN
> > > > tcp6 0 0 :::22 :::* LISTEN
> > >
> > > Your opinions, please?
> > >
> > > Thank you in advance,
> > > Eugene
> > >
> >
>
>
> =========================================================
>
> Данное сообщение и любые вложения (<<Сообщение>>) являются
> конфиденциальными, предназначенными исключительно для адресатов, и могут
> содержать сведения, охраняемые в соответствии с законодательством. Любое
> несанкционированное использование или распространение Сообщения запрещено.
> Электронная почта не гарантирует подлинности Сообщений. Ни ЗАО "АКБ
> "БЕЛРОСБАНК", ни любые его подразделения или дочерние организации не несут
> ответственности за Сообщение в случае его подмены, изменения либо
> фальсификации.
>
> =========================================================
>
> 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.
>
> =========================================================
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120215/e4dab845/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list