

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
22 messages in ru.sysoev.nginxRe: Nginx w/ ssh restart| From | Sent On | Attachments |
|---|---|---|
| Victor Iggy | Sep 10, 2008 3:12 pm | |
| Igor Sysoev | Sep 10, 2008 10:09 pm | |
| Victor Iggy | Sep 11, 2008 3:52 pm | |
| Igor Sysoev | Sep 13, 2008 7:06 am | |
| Victor Iggy | Sep 13, 2008 11:18 am | |
| Clint Priest | Sep 14, 2008 5:18 pm | |
| Igor Sysoev | Sep 15, 2008 1:14 am | |
| Victor Iggy | Sep 15, 2008 5:21 pm | |
| Igor Sysoev | Sep 16, 2008 1:42 am | |
| Clint Priest | Sep 16, 2008 9:16 pm | |
| Darrin Chandler | Sep 16, 2008 9:51 pm | |
| Igor Sysoev | Sep 16, 2008 10:34 pm | |
| Mansoor Peerbhoy | Sep 16, 2008 11:17 pm | |
| Igor Sysoev | Sep 16, 2008 11:21 pm | |
| Mansoor Peerbhoy | Sep 16, 2008 11:26 pm | |
| mike | Sep 16, 2008 11:29 pm | |
| Igor Sysoev | Sep 16, 2008 11:41 pm | |
| Igor Sysoev | Sep 16, 2008 11:51 pm | |
| mike | Sep 17, 2008 12:16 am | |
| Clint Priest | Sep 17, 2008 5:28 pm | |
| Samuel Vogel | Sep 17, 2008 5:43 pm | |
| mike | Sep 17, 2008 5:46 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: Nginx w/ ssh restart | Actions... |
|---|---|---|
| From: | Igor Sysoev (is...@rambler-co.ru) | |
| Date: | Sep 16, 2008 10:34:56 pm | |
| List: | ru.sysoev.nginx | |
On Tue, Sep 16, 2008 at 11:17:14PM -0500, Clint Priest wrote:
No, I don't have it set either way. I just tried setting it to on, same effect. 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: /usr/local/nginx/nginx or /usr/local/etc/rc.d/nginx.sh start 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 ?
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 ?
-- Igor Sysoev http://sysoev.ru/en/







