Roland Zagler
2005-Jul-04 12:55 UTC
[Asterisk-Users] Proper way to start * and load modules on a RedHatbox
Hi, after you have done "make", "make install" and maybe "make samples" in asterisk source-dir just do a "make config" and all will be done for you. to check if it worked, simply issue "chkconfig --list asterisk" to see the runlevels asterisk is started or not. to start zaptel drivers do the same after "make install" ("make config"), and then edit the file "/etc/sysconfig/zaptel" for your needs, which means comment out all the modules you don't want to load and uncomment all modules you want to load. afterwards you should start zaptel and asterisk as follows: # service zaptel start # service asterisk start during bootup process all is started fine. i experienced that on some configs the "service asterisk restart" does not work correctly, so go to "/etc/rc.d/init.d" and edit the file "asterisk" and insert a "sleep 5" between stop and start in "restart". hope this helps! regards, roland -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Remco Barende Sent: Monday, July 04, 2005 9:06 PM To: Asterisk Users List Subject: [Asterisk-Users] Proper way to start * and load modules on a RedHatbox Hi list! I have several boxes running asterisk as I want, no problems there but the one thing I haven't sorted out is how to properly start asterisk on boot time. This is probably a n00b class question but how do I properly set this up (I didn't find any docs on this). The zaptel script alone does not load the proper driver on boot time, I guess I need to do some thing with the alias stuff in modules.conf? Also how can I make the startup scripts appear in ntsysv? Even when I copy the scripts to rc.d they do not show up in ntsysv I tried loading the modules manually from rc.local but that doesn't work, even if I use delays. For some reason ztcfg doesn't work when run from rc.local and therefore asterisk fails to load. If I run ztcfg manually then ztcfg starts properly. Thanks for any hints / tips! _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Tzafrir Cohen
2005-Jul-04 13:29 UTC
[Asterisk-Users] Proper way to start * and load modules on a RedHatbox
On Mon, Jul 04, 2005 at 09:55:46PM +0200, Roland Zagler wrote:> i experienced that on some configs the "service asterisk restart" does > not work correctly, so go to "/etc/rc.d/init.d" and edit the file > "asterisk" > and insert a "sleep 5" between stop and start in "restart".Why is that? 'restart' on debian is simply: $0 stop $0 start 'stop' has some logic to stop asterisk: first asterisk -rx 'stop now' in the background, so it won't hang, after two seconds sigterm to the asterisk processes and after 5 sends sigkill. Seems to work well. -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend