From: Tony P. <To...@pl...> - 2007-05-03 15:38:50
|
<html><head><meta name=3D"Generator" content=3D"PSI HTML/CSS Generator"/> <style type=3D"text/css"><!-- body{font-family:'Tahoma';font-size:10pt;font-color:'#000000';} LI{display:list-item;margin:0.00in;} p{display:block;margin:0.00in;} body{} --></style> </head><BODY ><div><SPAN style=3D"font-family:'Arial';font-size:10pt;">I know= I posted this before, but when you run Asterisk in verbose mode, Asterisk= does not release the console and fork a new thread.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">In AstLinux, this= leaves the server "hung" just after the asterisk init script and no other= scripts run.  Because it is hung, the inittab never runs and you do= not get the console prompt.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">Is it possible to add= a "&" after the "asterisk -p" line in the /etc/init.d/asterisk script?=  I don't think it will break things when verbose mode is not= used.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">It would also be nice= to have a couple more tty entries in inittab for the console.  I am= not sure the impact of this with non i586 devices, but it is nice to have= the extra consoles when tty1 gets hung on the inittab.</SPAN></div> <div> </div> <div><SPAN style=3D"font-family:'Arial';font-size:10pt;">Any= thoughts?</SPAN></div> </body></html> |
From: Kristian K. <kri...@gm...> - 2007-05-03 16:27:18
|
On 5/3/07, Tony Plack <To...@pl...> wrote: > > I know I posted this before, but when you run Asterisk in verbose mode, > Asterisk does not release the console and fork a new thread. > > In AstLinux, this leaves the server "hung" just after the asterisk init > script and no other scripts run. Because it is hung, the inittab never runs > and you do not get the console prompt. > > Is it possible to add a "&" after the "asterisk -p" line in the > /etc/init.d/asterisk script? I don't think it will break things when > verbose mode is not used. > > It would also be nice to have a couple more tty entries in inittab for the > console. I am not sure the impact of this with non i586 devices, but it is > nice to have the extra consoles when tty1 gets hung on the inittab. > > Any thoughts? Tony, I run Asterisk in verbose mode all of the time. What changes did you make (command line arguments, config files, etc). I don't ever have the problems that you are describing. As far as extra ttys - screen is included by default. It is a much more flexible and memory efficient way to support multiple ttys. Are you familiar with it? -- Kristian Kielhofner |
From: Tony P. <To...@pl...> - 2007-05-03 16:58:29
|
<html><head><meta name=3D"Generator" content=3D"PSI HTML/CSS Generator"/> <style type=3D"text/css"><!-- body{font-family:'Tahoma';font-size:10pt;font-color:'#000000';} LI{display:list-item;margin:0.00in;} p{display:block;margin:0.00in;} body{} --></style> </head><BODY ><div><SPAN style=3D"font-size:10pt;">In the asterisk.conf file I= have the following:</SPAN></div> <div><SPAN style=3D"font-family:'Courier= New';font-size:9pt;">[options]</SPAN></div> <div><SPAN style=3D"font-family:'Courier New';font-size:9pt;">verbose =3D= 20 ;= Verbosity level for logging (-v)</SPAN></div> <div><SPAN style=3D"font-family:'Courier New';font-size:9pt;">highpriority =3D= yes ; Execute with= high priority (-p)</SPAN></div> <div> </div> <div><SPAN style=3D"font-size:10pt;">If I remove the verbose, the asterisk= will fork its process, with the verbose, it does not fork.</SPAN></div> <div> </div> <div><SPAN style=3D"font-size:10pt;">Just so you know, asterisk runs just= fine, but the console is not available and the mini-http never= loads.</SPAN></div> <div> </div> <div><SPAN style=3D"font-size:10pt;">Screen is great when dealing with a= console, but the problem is that I cannot log into the single default= console because of the above issue, therefore, screen is not= available.</SPAN></div> <div> </div> <div><SPAN style=3D"font-size:10pt;">Having the second console assures that= if/when the main console gets blocked (at least on the i586 platform), you= have a separate login point.<br /><br /></span></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> On 5/3/07, Tony Plack= wrote:</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> I know I posted= this before, but when you run Asterisk in verbose</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> mode, Asterisk does= not release the console and fork a new thread.</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> In AstLinux, this= leaves the server "hung" just after the</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> asterisk init= script and no other scripts run.  Because it is</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> hung, the inittab= never runs and you do not get the console</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>>= prompt.</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> Is it possible to= add a "&" after the "asterisk -p" line in the</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>>= /etc/init.d/asterisk script?  I don't think it will break= things</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> when verbose mode= is not used.</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> It would also be= nice to have a couple more tty entries in</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> inittab for the= console.  I am not sure the impact of this with</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> non i586 devices,= but it is nice to have the extra consoles when</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> tty1 gets hung on= the inittab.</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>> Any= thoughts?</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> Tony,</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> I run Asterisk in verbose= mode all of the time.  What changes did</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> you make (command line= arguments, config files, etc).  I don't ever</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> have the problems that= you are describing.</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">></SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> As far as extra ttys -= screen is included by default.  It is a much</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> more flexible and memory= efficient way to support multiple ttys.</SPAN></div> <div><SPAN style=3D"font-size:10pt;color:navy;">> Are you familiar with= it?</SPAN></div> </body></html> |
From: Kristian K. <kri...@gm...> - 2007-05-03 18:12:56
|
On 5/3/07, Tony Plack <To...@pl...> wrote: > > In the asterisk.conf file I have the following: > [options] > verbose = 20 ; Verbosity level for logging (-v) > highpriority = yes ; Execute with high priority (-p) > > If I remove the verbose, the asterisk will fork its process, with the > verbose, it does not fork. > > Just so you know, asterisk runs just fine, but the console is not available > and the mini-http never loads. > > Screen is great when dealing with a console, but the problem is that I > cannot log into the single default console because of the above issue, > therefore, screen is not available. > > Having the second console assures that if/when the main console gets blocked > (at least on the i586 platform), you have a separate login point. > Tony, Just as an FYI... I am VERY much against the idea of an "Asterisk console". It appears that option also enables the console, which is a bad idea. If you enable an "Asterisk console" security on the system becomes non-existant. Anyone can walk up to the box and have full access to Asterisk AND the shell (using !) as the user running Asterisk (usually root). Not good. Consoles are not platform specific but the ability for a virtual terminal is limited to systems with VGA video and a PS/2 mouse and keyboard. Many AstLinux systems only have a serial port. I have never had problems using multiple v's or "set verbose". If we solve this issue, screen will work quite well! -- Kristian Kielhofner |
From: Tony P. <To...@pl...> - 2007-05-03 18:55:26
|
<html><head><meta name=3D"Generator" content=3D"PSI HTML/CSS Generator"/> <style type=3D"text/css"><!-- body{font-family:'Tahoma';font-size:10pt;font-color:'#000000';} body{} LI{display:list-item;margin:0.00in;} p{display:block;margin:0.00in;} --></style> </head><BODY ><div class=3D"body"><SPAN style=3D"font-size:10pt;">I am NOT= proposing a "Asterisk Console".  What I am proposing is the following= in the /etc/inittab file<br /><br /></span></div> <div class=3D"body"><SPAN style=3D"font-family:'Courier= New';font-size:9pt;">console::respawn:/sbin/getty -L 19200 /dev/tty2= linux</SPAN></div> <div class=3D"body"><SPAN style=3D"font-family:'Courier= New';font-size:9pt;">console::respawn:/sbin/getty -L 19200 /dev/tty3= linux</SPAN><SPAN style=3D"font-size:10pt;"><br /><br /></span></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">which is just additional= of</SPAN></div> <div class=3D"body"> </div> <div class=3D"body"><SPAN style=3D"font-family:'Courier= New';font-size:9pt;">console::respawn:/sbin/getty -L 19200 /dev/tty1= linux</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;"><br />currently in the= system.  I assume that since we have the tty1 that you are not opposed= to a tty2 or tty3, other than the memory usage, which I believe getty is= fairly well behaved.</SPAN></div> <div class=3D"body"> </div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">As for the verbose issue, if= I start the system with the .conf file verbose out, it works fine.  I= can then stop the service and load it with -v, or once loaded, I can set= the set verbose just fine.  Verbosity is great.</SPAN></div> <div class=3D"body"> </div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">Verbose is not the problem,= but when verbose is in the .conf file (so I don't end up editing the= /etc/init.d/asterisk file, but I have had to), the system does not fork.=  This is a feature of asterisk and every version of asterisk that I= have tried does not fork.  If it does not fork, then the rest of the= init.d scripts do not run.  Asterisk runs just fine on astlinux with= this option.  You will not notice asterisk having a problem, you= notice that the mini-http does not load, and the console does not clear so= getty can run.</SPAN></div> <div class=3D"body"> </div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">If I keep the & in the= /etc/init.d/asterisk file and remove the verbose=3D20 line, it runs= fine.</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">If I take the & out of= the /etc/init.d/asterisk file and remove the verbose=3D20 line, it runs= fine.</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">If I take the & out of= the /etc/init.d/asterisk file and keep the verbose=3D20 line, the rc init= script hangs and does not process past this file.  Asterisk works but= getty is not available and mini-http is not available.</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">If I keep the & in the= /etc/init.d/asterisk file and keep the verbose=3D20 line, it runs= fine.</SPAN></div> <div class=3D"body"> </div> <div class=3D"body"><SPAN style=3D"font-size:10pt;">Hope that= clarifies.</SPAN></div> <div class=3D"body"> </div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> On 5/3/07,= Tony Plack wrote:</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:navy;">></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> In the= asterisk.conf file I have the following:</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>>= [options]</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>>= verbose =3D 20                  =   Verbosity level for logging (-</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> v)= highpriority =3D yes                = ; Execute with high</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>>= priority (-p)</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> If I= remove the verbose, the asterisk will fork its process, with</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> the= verbose, it does not fork.</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> Just= so you know, asterisk runs just fine, but the console is not</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>>= available and the mini-http never loads.</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> Screen= is great when dealing with a console, but the problem is</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> that I= cannot log into the single default console because of the</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> above= issue, therefore, screen is not available.</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> Having= the second console assures that if/when the main console</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> gets= blocked (at least on the i586 platform), you have a separate</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:maroon;">>> login= point.</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:maroon;">>></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">>= Tony,</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:navy;">></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> Just as an= FYI...</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:navy;">></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> I am VERY= much against the idea of an "Asterisk console".</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:navy;">></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> It appears= that option also enables the console, which is a bad</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> idea.=  If you enable an "Asterisk console" security on the= system</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> becomes= non-existant.  Anyone can walk up to the box and have= full</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> access to= Asterisk AND the shell (using !) as the user running</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> Asterisk= (usually root).  Not good.</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:navy;">></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> Consoles are= not platform specific but the ability for a virtual</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> terminal is= limited to systems with VGA video and a PS/2 mouse and</SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> keyboard.=  Many AstLinux systems only have a serial port.</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:navy;">></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> I have never= had problems using multiple v's or "set verbose".</SPAN></div> <div class=3D"body"><SPAN= style=3D"font-size:10pt;color:navy;">></SPAN></div> <div class=3D"body"><SPAN style=3D"font-size:10pt;color:navy;">> If we solve= this issue, screen will work quite well!</SPAN></div> </body></html> |