View previous topic :: View next topic |
Author |
Message |
codecomplete at free.fr Guest
|
Posted: Mon Apr 06, 2009 6:51 am Post subject: [Freeswitch-users] Freeswitch not started OK at boottime? |
|
|
Hello
I'm having a problem connecting to the Freeswitch server running on a
Suse server when the it's started at bootime, but OK if I start it
manually through the init.d script, so I guess I did something wrong
when setting things up.
Here's what I did:
1. Downloaded and compiled the latest SVN source
2. cp /usr/src/freeswitch/build/freeswitch.init.suse /etc/init.d/freeswitch
3. chmod 755 /etc/init.d/freeswitch
4. chkconfig freeswitch 345
5. chkconfig -l freeswitch
6. (why needed in addition to chkconfig?) ln -s
/etc/init.d/freeswitch /usr/sbin/rcfreeswitch
7. Edit /etc/init.d/freeswitch:
FREESWITCH_BIN=/usr/local/freeswitch/bin/freeswitch
#(BAD!) FREESWITCH_CONFIG=/usr/local/freeswitch/conf/freeswitch.xml
FREESWITCH_PARAMS="-nc"
Here's what it says when I try to connect to the server:
=========
# ps aux | grep free
root 3497 0.6 0.7 16912 8212 ? Sl 12:03 0:00
/usr/local/freeswitch/bin/freeswitch -nc
# cd /usr/local/freeswitch/bin/
# ./fs_cli
[ERROR] libs/esl/fs_cli.c:642 main() Error Connecting [Socket Connection Error]
=========
Here's how to solve this issue manually:
=========
# /etc/init.d/freeswitch stop
Shutting down FreeSWITCH done
# /etc/init.d/freeswitch start
Starting FreeSWITCH 3867 Backgrounding.
done
/usr/local/freeswitch/bin # ./fs_cli
[logo deleted]
+OK log level [7]
freeswitch@internal> /exit
#
=========
Any idea what is wrong?
Thank you for any hint.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Apr 06, 2009 8:39 am Post subject: [Freeswitch-users] Freeswitch not started OK at boottime? |
|
|
What run level are you starting freeswitch?
/b
On Apr 6, 2009, at 6:41 AM, Fred wrote:
Quote: | Hello
I'm having a problem connecting to the Freeswitch server running on a
Suse server when the it's started at bootime, but OK if I start it
manually through the init.d script, so I guess I did something wrong
when setting things up.
Here's what I did:
1. Downloaded and compiled the latest SVN source
2. cp /usr/src/freeswitch/build/freeswitch.init.suse /etc/init.d/
freeswitch
3. chmod 755 /etc/init.d/freeswitch
4. chkconfig freeswitch 345
5. chkconfig -l freeswitch
6. (why needed in addition to chkconfig?) ln -s
/etc/init.d/freeswitch /usr/sbin/rcfreeswitch
7. Edit /etc/init.d/freeswitch:
FREESWITCH_BIN=/usr/local/freeswitch/bin/freeswitch
#(BAD!) FREESWITCH_CONFIG=/usr/local/freeswitch/conf/freeswitch.xml
FREESWITCH_PARAMS="-nc"
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
dujinfang at gmail.com Guest
|
Posted: Mon Apr 06, 2009 8:54 am Post subject: [Freeswitch-users] Freeswitch not started OK at boottime? |
|
|
Quote: | Here's what it says when I try to connect to the server:
=========
# ps aux | grep free
root 3497 0.6 0.7 16912 8212 ? Sl 12:03 0:00
/usr/local/freeswitch/bin/freeswitch -nc
| It seems started, I never used a suse, however, can you try this?
#netstat -an | grep 8021
Maybe FS started before network is ready. Check scripts in /etc/
rc<your_run_level>.d/ or any equiv
Quote: | # cd /usr/local/freeswitch/bin/
# ./fs_cli
[ERROR] libs/esl/fs_cli.c:642 main() Error Connecting [Socket
Connection Error]
=========
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
codecomplete at free.fr Guest
|
Posted: Mon Apr 06, 2009 11:07 am Post subject: [Freeswitch-users] Freeswitch not started OK at boottime? |
|
|
Brian West-3 > What run level are you starting freeswitch?
3 to 5, the default being 5 (it's the desktop version, hence starting with X):
# cat /etc/inittab
[...]
id:5:initdefault:
# chkconfig -l freeswitch
freeswitch 0:off 1:off 2:off 3n 4n 5n 6:off
dujinfang > It seems started, I never used a suse, however, can you
try this? #netstat -an | grep 8021
# netstat -an | grep 8021
tcp 0 0 127.0.0.1:8021 0.0.0.0:* LISTEN
Quote: | Maybe FS started before network is ready. Check scripts in
| /etc/rc<your_run_level>.d/ or any equiv
It looks ok:
# ll /etc/rc.d/rc5.d/
[...]
lrwxrwxrwx 1 root root 10 Jun 16 2008 S05network -> ../network
[...]
lrwxrwxrwx 1 root root 13 Mar 24 16:36 S12freeswitch -> ../freeswitch
lrwxrwxrwx 1 root root 6 Jun 16 2008 S12xdm -> ../xdm
lrwxrwxrwx 1 root root 8 Jun 16 2008 S14smbfs -> ../smbfs
lrwxrwxrwx 1 root root 13 Jun 16 2008 S15cupsrenice -> ../cupsrenice
If it's a Suse-specific issue, I'll go ask in a Suse forum and see if
someone can figure it out.
Thanks guys for the tips.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|