<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta content="text/html;charset=KOI8-R" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
<tt>I ended up writing my own debian init.d script which also included
spawn-fcgi which apparently is what's causing the problem, commenting
out the start lines for that and there's no problem via ssh.<br>
Is there an official debian start init.d script somewhere?<br>
Igor Sysoev wrote:
<blockquote cite="mid:20080917053519.GC228@rambler-co.ru" type="cite">
<pre wrap="">On Tue, Sep 16, 2008 at 11:17:14PM -0500, Clint Priest wrote:
<pre wrap=""> No, I don't have it set either way. I just tried setting it to on,
What happens on your end trying to restart via ssh remotely?
I usually do not use restart (as stop/start sequence), because graceful
reconfiguration using -HUP or online binary upgrade are enough.
On fresh servers I start nginx using:
This is always run via ssh and I never saw any ssh issues.
Just tried to start using
ssh root@host /usr/local/etc/rc.d/nginx.sh start
without any problems.
The problem is probably in "service" utility. What is it ?
<pre wrap=""> Igor Sysoev wrote:
On Sun, Sep 14, 2008 at 07:19:02PM -0500, Clint Priest wrote:
I'm having trouble getting nginx to restart via an ssh shell. From a
remote machine doing "ssh root@web1 service nginx restart" is causing
the ssh shell to not disconnect once nginx restarts.
I've had similar trouble with my own daemons which I have solved by
ensuring all file descriptors are closed before or after the daemon
fork. Does nginx do this?
Any other ideas which would cause nginx to hang the shell?
During daemon fork nginx does not close at least listen sockets and log files.
Otherwise it will can not work. However, I think it should not hang a shell.
Do you use "daemon off" in nginx.conf ?