Re: [Asterisk-Users] Asterisk Restart after crash
There is a bug with safe_asterisk and FC2, you must edit the script to remove 'daemon' from the the startup command and then it will auto restart. Craig - Original Message - From: David Phelan [EMAIL PROTECTED] To: 'Asterisk Users Mailing List - Non-Commercial Discussion' asterisk-users@lists.digium.com Sent: Friday, April 22, 2005 1:32 PM Subject: RE: [Asterisk-Users] Asterisk Restart after crash After a crash of what?? Linux...asterisk?? Depends on how you have it setup If you start asterisk with safe_asterisk, then if asterisk crashes it will start again. If you run safe_asterisk from say...your rc.local then it will start when linux restarts. Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chuck Smith Sent: Friday, 22 April 2005 1:56 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] Asterisk Restart after crash Does Asterisk restart itself if it crashes? If not is there a way to make linux do it? ___ 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 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21/04/2005 ___ 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 ___ 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
RE: [Asterisk-Users] Asterisk Restart after crash
Could you give some more information on where to remove 'daemon' and the effects? Since all our productionservers running FC2 I'm a bit concerned. There is a bug with safe_asterisk and FC2, you must edit the script to remove 'daemon' from the the startup command and then it will auto restart. Thanks a lot Guido Hecken ___ 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
RE: [Asterisk-Users] Asterisk Restart after crash
OK how do you know if it's running in safe_asterisk mode? I am running [EMAIL PROTECTED] Does that run in safe mode by default? What file do you look at to see how asterisk starts up? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Phelan Sent: Friday, April 22, 2005 1:32 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] Asterisk Restart after crash After a crash of what?? Linux...asterisk?? Depends on how you have it setup If you start asterisk with safe_asterisk, then if asterisk crashes it will start again. If you run safe_asterisk from say...your rc.local then it will start when linux restarts. Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chuck Smith Sent: Friday, 22 April 2005 1:56 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] Asterisk Restart after crash Does Asterisk restart itself if it crashes? If not is there a way to make linux do it? ___ 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 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21/04/2005 ___ 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 ___ 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
Re: [Asterisk-Users] Asterisk Restart after crash
In your asterisk script in init.d that calls safe_asterisk change this: start() { # Start daemons. echo -n $Starting asterisk: if [ -f $SAFE_ASTERISK ] ; then DAEMON=$SAFE_ASTERISK fi if [ $AST_USER ] ; then ASTARGS=-U $AST_USER fi if [ $AST_GROUP ] ; then ASTARGS=`echo $ASTARGS` -G $AST_GROUP fi --daemon $DAEMON $ASTARGS RETVAL=$? [ $RETVAL -eq 0 ] touch /var/lock/subsys/asterisk echo return $RETVAL } to this: start() { # Start daemons. echo -n $Starting asterisk: if [ -f $SAFE_ASTERISK ] ; then DAEMON=$SAFE_ASTERISK fi if [ $AST_USER ] ; then ASTARGS=-U $AST_USER fi if [ $AST_GROUP ] ; then ASTARGS=`echo $ASTARGS` -G $AST_GROUP fi $DAEMON $ASTARGS RETVAL=$? [ $RETVAL -eq 0 ] touch /var/lock/subsys/asterisk echo return $RETVAL } ie remove 'daemon' from the command. Test it by kill -9 asterisk pid and see if it restarts - it is quite aggressive. Craig - Original Message - From: Guido Hecken [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, April 22, 2005 7:56 PM Subject: RE: [Asterisk-Users] Asterisk Restart after crash Could you give some more information on where to remove 'daemon' and the effects? Since all our productionservers running FC2 I'm a bit concerned. There is a bug with safe_asterisk and FC2, you must edit the script to remove 'daemon' from the the startup command and then it will auto restart. Thanks a lot Guido Hecken ___ 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 ___ 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
Re: [Asterisk-Users] Asterisk Restart after crash
After applying the change to the init script, it seems to restart the asterisk processes which get killed, but do you have a functional system with this? Our Testsystem spits out some '100% CPU-Loaded mpg123 processes' and asterisk was somehow dead. Did I miss something? Yes I found the same thing. Looks like either safe_asterisk needs to kill any mpg123 processes before restarting asterisk or the patch to only run an mp3 player when necessary that exists IIRC becomes the standard. Can someone point me in the right direction so I can find that patch? Regards, Marc ___ 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
Re: [Asterisk-Users] Asterisk Restart after crash
On Fri, 2005-04-22 at 19:33 +0800, Craig Guy wrote: There is a bug with safe_asterisk and FC2, you must edit the script to remove 'daemon' from the the startup command and then it will auto restart. Add Mandrake/Mandriva 10.x to that list. Many thanks that solved a real problem for me. -- Dave Cotton [EMAIL PROTECTED] ___ 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
RE: [Asterisk-Users] Asterisk Restart after crash
In your asterisk in init.d that calls safe_asterisk change this: ... fi $DAEMON $ASTARGS RETVAL=$? [ $RETVAL -eq 0 ] touch /var/lock/subsys/asterisk echo return $RETVAL } ie remove 'daemon' from the command. After applying the change to the init script, it seems to restart the asterisk processes which get killed, but do you have a functional system with this? Our Testsystem spits out some '100% CPU-Loaded mpg123 processes' and asterisk was somehow dead. Did I miss something? Test it by kill -9 asterisk pid and see if it restarts - it is quite aggressive. Yeah, really aggressive ;-) Guido Hecken ___ 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
RE: [Asterisk-Users] Asterisk Restart after crash
On Fri, 2005-04-22 at 17:18 +0200, Guido Hecken wrote: After applying the change to the init script, it seems to restart the asterisk processes which get killed, but do you have a functional system with this? Our Testsystem spits out some '100% CPU-Loaded mpg123 processes' and asterisk was somehow dead. Did I miss something? Yes I found the same thing. Looks like either safe_asterisk needs to kill any mpg123 processes before restarting asterisk or the patch to only run an mp3 player when necessary that exists IIRC becomes the standard. -- Dave Cotton [EMAIL PROTECTED] ___ 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
Re: [Asterisk-Users] Asterisk Restart after crash
Hello Chuck, Friday, April 22, 2005, 5:56:02 AM, you wrote: CS Does Asterisk restart itself if it crashes? If not is there a way to make CS linux do it? Have a look at safe_asterisk script it's included, I guess. CS ___ CS Asterisk-Users mailing list CS Asterisk-Users@lists.digium.com CS http://lists.digium.com/mailman/listinfo/asterisk-users CS To UNSUBSCRIBE or update options visit: CShttp://lists.digium.com/mailman/listinfo/asterisk-users -- Best regards, Alessiomailto:[EMAIL PROTECTED] ___ 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
Re: [Asterisk-Users] Asterisk Restart after crash
I haven't seen any of that behaviour on my system. If it makes any difference I run asterisk as a non root user. Craig - Original Message - From: Guido Hecken [EMAIL PROTECTED] To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, April 22, 2005 11:18 PM Subject: RE: [Asterisk-Users] Asterisk Restart after crash In your asterisk in init.d that calls safe_asterisk change this: ... fi $DAEMON $ASTARGS RETVAL=$? [ $RETVAL -eq 0 ] touch /var/lock/subsys/asterisk echo return $RETVAL } ie remove 'daemon' from the command. After applying the change to the init script, it seems to restart the asterisk processes which get killed, but do you have a functional system with this? Our Testsystem spits out some '100% CPU-Loaded mpg123 processes' and asterisk was somehow dead. Did I miss something? Test it by kill -9 asterisk pid and see if it restarts - it is quite aggressive. Yeah, really aggressive ;-) Guido Hecken ___ 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 ___ 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
[Asterisk-Users] Asterisk Restart after crash
Does Asterisk restart itself if it crashes? If not is there a way to make linux do it? ___ 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
RE: [Asterisk-Users] Asterisk Restart after crash
After a crash of what?? Linux...asterisk?? Depends on how you have it setup If you start asterisk with safe_asterisk, then if asterisk crashes it will start again. If you run safe_asterisk from say...your rc.local then it will start when linux restarts. Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chuck Smith Sent: Friday, 22 April 2005 1:56 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] Asterisk Restart after crash Does Asterisk restart itself if it crashes? If not is there a way to make linux do it? ___ 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 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.10.2 - Release Date: 21/04/2005 ___ 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