JR Richardson
2011-Jan-20 18:01 UTC
[asterisk-users] Asterisk 1.6 SSH Console Colors Debian Lenny
Hi All, I'm running * 1.6.0.28 on Debian Lenny. The init'd script starts the asterisk daemon not the safe_asterisk daemon so when asterisk is running and I ssh tot he server then 'asterisk -vr' to attach to the asterisk console there are no colors. If I use the safe_asterisk script to start asterisk, the colors are fine when I attach through SSH. I found this in the init script: #----snip-----# # Mon Jun 04 2007 I??aki Baz Castillo <ibc at in.ilimit.es> # - Eliminated SAFE_ASTERISK since it doesn't work as LSB script (it could require a independent "safe_asterisk" init script). # If you DON'T want Asterisk to start up with terminal colors, comment # this out. COLOR=yes #----snop----# Commenting out COLOR=yes has no effect. The work around is to use the * 1.4 init script which does call safe_asterisk daemon and things seem to work as expected with the colors. So my question is, will this impact the stability of the system in reference to debian lenny using LSB scripts vs the older init scripts? Or is there another work around to get ssh console colors using the Debian * 1.6.0.28 LSB init script? I also tried 'nocolor = no' in the [options] section of asterisk.conf with no effect. Thanks. JR -- JR Richardson Engineering for the Masses
dotnetdub
2011-Jan-20 18:13 UTC
[asterisk-users] Asterisk 1.6 SSH Console Colors Debian Lenny
On 20 January 2011 18:01, JR Richardson <jmr.richardson at gmail.com> wrote:> Or is there another work around to get ssh console colors using the > Debian * 1.6.0.28 LSB init script? > > I also tried 'nocolor = no' in the [options] section of asterisk.conf > with no effect. >Try running asterisk using safe_asterisk.. Works for me with 1.4.22 and lenny.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110120/bc36e19d/attachment.htm>
A J Stiles
2011-Jan-20 18:22 UTC
[asterisk-users] Asterisk 1.6 SSH Console Colors Debian Lenny
On Thursday 20 Jan 2011, JR Richardson wrote:> Hi All, > > I'm running * 1.6.0.28 on Debian Lenny. The init'd script starts the > asterisk daemon not the safe_asterisk daemon so when asterisk is > running and I ssh tot he server then 'asterisk -vr' to attach to the > asterisk console there are no colors. If I use the safe_asterisk > script to start asterisk, the colors are fine when I attach through > SSH.I'm running Debian but have been running Asterisk since before there was a proper Debian package, and so I ended up writing my own init.d script. See attached. No guarantees or anything :) -- AJS Answers come *after* questions. -------------- next part -------------- A non-text attachment was scrubbed... Name: asterisk Type: application/x-shellscript Size: 1654 bytes Desc: not available URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110120/e5dd78ef/attachment.bin>