[Asterisk-Users] /etc/init.d/asterisk barfing

Tzafrir Cohen tzafrir at cohens.org.il
Thu Sep 1 12:04:53 MST 2005


On Thu, Sep 01, 2005 at 10:15:04AM +0100, Julian Lyndon-Smith wrote:
> Hi Steve :)
> 
> The problem is not with the asterisk command, nor with safe_asterisk but 
> with the /etc/init.d/asterisk script
> 
> if I manually run
> 
> /etc/init.d/asterisk start
> 
> all's ok
> 
> if I manually run
> 
> service asterisk start
> 
> it says that it has started, but hasn't :)

The command that is actually run at startup is something like:

  /etc/rc3.d/S30asterisk start

And it is actually run from an environment that is slightly different
from your standard shell. Try isuing it through inittab or through an at
or cron job to get a more realistic environment if you suspect that.

> 
> Julian
> 
> Steve Hanselman wrote:
> >Try doing an strace on it and seeing what the last section shows you.
> >i.e. strace asterisk -vvvvvvvc

A nicer trace would be done using 'set -x' . Add that line somewhere in
the init script. Compare the output from the good case to the output
from the bad case.

BTW: any reason why the "redhat" and "debian" init.d script in the contrib 
directory still use LD_ASSUME_KERNEL=2.4.1 ? It is not used in the
init.d script of the Debian package and not in the init.d scripts that
appear to be newer in that directory.

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list