Re: [Freeswitch-users] Freeswitch not started OK at boottime?

2009-04-06 Thread Brian West
What run level are you starting freeswitch?

/b

On Apr 6, 2009, at 6:41 AM, Fred wrote:

 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


Re: [Freeswitch-users] Freeswitch not started OK at boottime?

2009-04-06 Thread dujinfang
 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/ 
rcyour_run_level.d/ or any equiv

 # 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


Re: [Freeswitch-users] Freeswitch not started OK at boottime?

2009-04-06 Thread Fred
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
freeswitch0:off  1:off  2:off  3:on   4:on   5:on   6:off

dujinfang  It seems started, I never used a suse, however, can you 
try this? #netstat -an | grep 8021

# netstat -an | grep 8021
tcp0  0 127.0.0.1:8021  0.0.0.0:*   LISTEN

  Maybe FS started before network is ready. Check scripts in 
/etc/rcyour_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