Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Starting Freeswitch at boot-time with rc.d script?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
codecomplete at free.fr
Guest





PostPosted: Wed Mar 25, 2009 6:16 am    Post subject: [Freeswitch-users] Starting Freeswitch at boot-time with rc. Reply with quote

Hello

I'm struggling to have Freeswitch start automatically in a Suse host
at boot-time through the rc.d script provided in SVN.

Here's what I did so far:
1. cp /usr/src/freeswitch/build/freeswitch.init.suse /etc/init.d/freeswitch
2. chmod 755 /etc/init.d/freeswitch
3. chkconfig freeswitch 345
4. chkconfig -l freeswitch
5. ln -s /usr/sbin/rcfreeswitch /etc/init.d/freeswitch
6. Edited /etc/init.d/freeswitch to correct the following two lines:

#FREESWITCH_BIN=/opt/freeswitch/bin/freeswitch
FREESWITCH_BIN=/usr/local/freeswitch/bin/freeswitch

#FREESWITCH_CONFIG=/etc/sysconfig/freeswitch
FREESWITCH_CONFIG=/usr/local/freeswitch/conf/freeswitch.xml

7. Ran the script: /etc/init.d/freeswitch start
[...]
Session Rate[30]
SQL [Enabled]
2009-03-25 11:54:56 [WARNING] switch_console.c:432 console_thread()
We've become an orphan, no more console for us.

=> According to the FAQ, running Freeswitch without a console
requires using the "-nc" switch. Should I edit the rc.d script
further to use this, or is the issue elsewhere?

Thank you.


_______________________________________________
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





PostPosted: Wed Mar 25, 2009 10:47 am    Post subject: [Freeswitch-users] Starting Freeswitch at boot-time with rc. Reply with quote

I don't think you need FREESWITCH_CONFIG. It will find all
configuration files on default place, say /usr/local/freeswitch/conf

If you store config files in other place, the command line should like
this

/usr/local/freeswitch/bin/freeswitch -conf /tmp/conf -db /tmp/db -log /
tmp/log

On Mar 25, 2009, at 7:56 PM, Gilles wrote:

Quote:
Add-on: The script is almost fine now, but I don't know whether the
script really requires a config file, and if yes, where it can be
found (the XML file doesn't seem to be it):

FREESWITCH_PARAMS="-nc"
FREESWITCH_BIN=/usr/local/freeswitch/bin/freeswitchI

#BAD!!! FREESWITCH_CONFIG=/usr/local/freeswitch/conf/freeswitch.xml
#. $FREESWITCH_CONFIG

Thank you.


_______________________________________________
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


_______________________________________________
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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services