[Asterisk-Users] vserver (Debian) - no tty: howto use
/usr/sbin/safe_asterisk with "-c" for color CLI?
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sat Jul 8 08:16:00 MST 2006
On Tue, Jul 04, 2006 at 05:10:35PM +0200, Robert Michel wrote:
> 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 ;)
Some RTFM from asterisk(8):
-c Provide a control console on the calling terminal. Specifying
this option implies -f and will cause asterisk to no longer fork
or detach from the controlling terminal.
The fact that you only get colors there i a byproduct. -c simply tells asterisk not to act as a daemon.
--
Tzafrir Cohen sip:tzafrir at local.xorcom.com
icq#16849755 iax:tzafrir at local.xorcom.com
+972-50-7952406
tzafrir.cohen at xorcom.com http://www.xorcom.com
More information about the asterisk-users
mailing list