Nginx w/ ssh restart
Igor Sysoev
is at rambler-co.ru
Mon Sep 15 12:14:58 MSD 2008
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 at 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 ?
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list