Hi there, after i restartet or just started lighty remotely via ssh (/etc/init.d/lighttpd restart/start) i cant exit the console with "exit", "logout" or ctrl+d. The screen stands still here: lotest:~# /etc/init.d/lighttpd restart Stopping web server: lighttpd. Starting web server: lighttpd. lotest:~# logout [newline] after i hit ctrl+c the ssh session is closed. i'm using debian etch with lighttpd from apt-get on many machines and its not nice to restart all 20 webservers at once (sometimes i have to).
on 04.09.2008 18:51
on 05.09.2008 13:05
FraggeR wrote: > Hi there, > > after i restartet or just started lighty remotely via ssh > (/etc/init.d/lighttpd restart/start) i cant exit the console with > "exit", "logout" or ctrl+d. > > The screen stands still here: > lotest:~# /etc/init.d/lighttpd restart > Stopping web server: lighttpd. > Starting web server: lighttpd. > lotest:~# logout > [newline] > > after i hit ctrl+c the ssh session is closed. > > i'm using debian etch with lighttpd from apt-get on many machines and > its not nice to restart all 20 webservers at once (sometimes i have to). this is because either the stdin or stdout gets trapped. It's the way the server starts in the init.d script. Attached is one I've been using and so far fixes that problem. Another thing you could do is start/stop the server in a screen. regards, rolando./
on 05.09.2008 16:09
rolando wrote: > FraggeR wrote: >> Hi there, >> >> after i restartet or just started lighty remotely via ssh >> (/etc/init.d/lighttpd restart/start) i cant exit the console with >> "exit", "logout" or ctrl+d. >> >> The screen stands still here: >> lotest:~# /etc/init.d/lighttpd restart >> Stopping web server: lighttpd. >> Starting web server: lighttpd. >> lotest:~# logout >> [newline] >> >> after i hit ctrl+c the ssh session is closed. >> >> i'm using debian etch with lighttpd from apt-get on many machines and >> its not nice to restart all 20 webservers at once (sometimes i have to). > > this is because either the stdin or stdout gets trapped. It's the way > the server starts in the init.d script. Attached is one I've been using > and so far fixes that problem. > Another thing you could do is start/stop the server in a screen. > > regards, > rolando./ What is Attached ? I dont know if screen is the best method, because i want a script to restart them, in some special moments. Do you know a way to do this with screen?
on 07.09.2008 18:29
> > What is Attached ? > I dont know if screen is the best method, because i want a script to > restart them, in some special moments. Do you know a way to do this with > screen? sorry for the stupid question .... wasnt really awake, but i cant see an attached file ?!
on 07.09.2008 18:33
FraggeR wrote: > >> >> What is Attached ? >> I dont know if screen is the best method, because i want a script to >> restart them, in some special moments. Do you know a way to do this with >> screen? > sorry for the stupid question .... wasnt really awake, but i cant see an > attached file ?! hmpf, sorry for this... found it, tried it and i had the same problem.... cant exit console after startet lighty
on 14.09.2008 06:41
FraggeR wrote: > FraggeR wrote: >> >>> >>> What is Attached ? >>> I dont know if screen is the best method, because i want a script to >>> restart them, in some special moments. Do you know a way to do this with >>> screen? >> sorry for the stupid question .... wasnt really awake, but i cant see an >> attached file ?! > > hmpf, sorry for this... found it, tried it and i had the same > problem.... cant exit console after startet lighty nobody can help me? then, does somebody know, how to restart lighty in a screen via script ?
on 18.09.2008 16:50
FraggeR wrote: > Hi there, > > after i restartet or just started lighty remotely via ssh > (/etc/init.d/lighttpd restart/start) i cant exit the console with > "exit", "logout" or ctrl+d. > > The screen stands still here: > lotest:~# /etc/init.d/lighttpd restart > Stopping web server: lighttpd. > Starting web server: lighttpd. > lotest:~# logout > [newline] > > after i hit ctrl+c the ssh session is closed. > > i'm using debian etch with lighttpd from apt-get on many machines and > its not nice to restart all 20 webservers at once (sometimes i have to). *push* nobody any idea?

