[Asterisk-Users] vserver (Debian) - no tty: howto use
/usr/sbin/safe_asterisk with "-c" for color CLI?
Robert Michel
news at robertmichel.de
Tue Jul 4 08:10:35 MST 2006
Salve *!
I'm using asterisk for a while and now I want to have a colord CLI.
I have apt-get install asterisk/testing, that is asterisk 1.2.7.1
I use Debian stable/testing on a vserver with any /dev/tty*.
So, of course, I comment out "#TTY=9" inside /usr/sbin/safe_asterisk.
/etc/init.d/asterisk start
calls
/usr/sbin/safe_asterisk
root 5757 1 0 1149 1348 0 16:08 pts/30 00:00:00 /bin/sh/usr/sbin/safe_asterisk -g -vvv -U asterisk
asterisk 5758 5757 0 4502 7992 0 16:08 pts/30 00:00:00 \_/usr/sbin/asterisk -g -vvv -U asterisk
When I start asterisk by hand with "asterisk -cgvvv"
I got a colored CLI ;)
but inside /usr/sbin/safe_asterisk (started by
/etc/init.d/asterisk - with "-U asterisk")
or inside /etc/init.d/asterisk itself all my tries
to use "-c" as additional parameter faild. ;(
E.g. I changed line 52 inside etc/init.d/asterisk
PARAMS="$PARAMS -U $USER"
PARAMS="$PARAMS -c -U $USER"
This does run the CLI with color :)
also with color for asterisk -rcvvv
*but* there is an fast running repeating output
after running /etc/init.d/asterisk start
Use EXIT or QUIT to exit the asterisk console
Use EXIT or QUIT to exit the asterisk console
Use EXIT or QUIT to exit the asterisk console
[...]
The handycap of vserver is, that as root at guest you can't creat devices
yourself. I think asterisk is also reading from /dev/tty9, so a
ls -s /dev/null /dev/tty9 does not help (tested).
Does somebody have an idea how to deal with this?
Can I run asterisk with color CLI without a TTY*?
Greetings,
rob
More information about the asterisk-users
mailing list