[Asterisk-Users] detaching console from foreground asterisk

Tzafrir Cohen tzafrir at cohens.org.il
Tue Aug 9 13:22:18 MST 2005


On Tue, Aug 09, 2005 at 09:30:31PM +0200, Michiel van Baak wrote:
> On 22:19, Tue 09 Aug 05, Tzafrir Cohen wrote:
> > On Tue, Aug 09, 2005 at 03:06:01PM -0400, James Treleaven wrote:
> > > Is it possible to start asterisk in the foreground ("asterisk -fc") and 
> > > later detach from the terminal but leave asterisk running?
> > 
> > Start Asterisk in a screen(1) terminal ?
> > 
> > BTW: anybody wants to wrap safe_asterisk to make it possible to use a
> > screen terminal instead of a virtual console?
> > 
> 
> Maybe this is too lame but how about you type this in a
> screen session:
> 
> while (1) {
> 	asterisk -fc
> }
> 
> ;)

Take a look at safe_asterisk to see a number of obvious flaws in such a
simplistic script. Don't reinvent the wheel.

And this is still not something I could run from an init.d script (that
has no terminal).

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list