I rebooted the server on which the Asterisk is hosted on. The * did not come back up and I get this message when I attempt to use CLI [root@sip0 ~]# asterisk -r Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060917/331a4c1d/attachment.htm
broadbandvoice@comcast.net schrieb:> I rebooted the server on which the Asterisk is hosted on. The * did not > come back up and I get this message when I attempt to use CLI > > [root@sip0 ~]# asterisk -r > Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)Did you configure your server in /etc/rc?.d/, that it sould start after reboot? Tools: rcconf (debian) chkconfig (fedora,redhat) What does /var/log/asterisk say?
Hi, obviously asterisk doesn't start with the installed(?) start script. Try to start it manually and watch the cli for informations with asterisk -vvvvvvvvvvvvvvvc AFAIK a make config in the asterisk source should install the start script for your system. Hope it helps... Guido ________________________________________ Von: broadbandvoice@comcast.net [mailto:broadbandvoice@comcast.net] Gesendet: Sonntag, 17. September 2006 15:27 An: asterisk-users@lists.digium.com Betreff: [asterisk-users] Asterisk Server Down I rebooted the server on which the Asterisk is hosted on. The * did not come back up and I get this message when I attempt to use CLI ? [root@sip0 ~]# asterisk -r Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
> -----Urspr?ngliche Nachricht----- > Von: Tzafrir Cohen [mailto:tzafrir.cohen@xorcom.com] > Gesendet: Sonntag, 17. September 2006 15:56 > An: asterisk-users@lists.digium.com > Betreff: Re: [asterisk-users] Asterisk Server Down > > On Sun, Sep 17, 2006 at 03:54:46PM +0200, Guido Hecken wrote: > > Hi, > > > > obviously asterisk doesn't start with the installed(?) start script. > > Try to start it manually and watch the cli for informations with > > asterisk -vvvvvvvvvvvvvvvc > > One warning: if your system is normally configured to run as non-root, > this may cause it to write some fiels as root, and not start properly > next time you start it with the standard script. > > With the Debian packages, use: > > /etc/init.d/asterisk debug > > Which is normally just a glorified: > > asterisk -U asterisk -vvTzafrir, you're right, one should proof, under which user asterisk runs... Besides security reasons, running asterisk as root, doesn't it allow a higher prioritization of asterisk processes? Guido
Thanks everyone it is working now. -------------- Original message -------------- From: Tzafrir Cohen <tzafrir.cohen@xorcom.com>> On Sun, Sep 17, 2006 at 10:40:16AM -0400, Steve Totaro wrote: > > > >you're right, one should proof, under which user asterisk runs... > > >Besides security reasons, running asterisk as root, doesn't it allow a > > >higher prioritization of asterisk processes? > > This is why we let asterisk setuid itself to user asterisk, and don't > let the wrappr script handle that. Asterisk sets scheduling priority > before running setuid/setgid . > > > I can see a problem with security issues but is it a bad thing to allow > > higher priority of the asterisk process? Not sure that it does anyways, > > but I don't see how that is a bad thing? > > It can help the quality of Audio. On the downside, it means that a 100% > CPU loop in asterisk is a pain to recover from. Security implications: > if someone can inject you one line to the dialpan, they can (under the > right circumstances) get your system stuck very badly . Unless you have > a manager connection availble. > > -- > Tzafrir Cohen sip:tzafrir@local.xorcom.com > icq#16849755 iax:tzafrir@local.xorcom.com > +972-50-7952406 jabber:tzafrir@jabber.org > tzafrir.cohen@xorcom.com http://www.xorcom.com > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060917/f915d4c3/attachment.htm