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> |