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" <guido.hecken@gwsnettech.de>
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
>