Re: обновление при запуске вручную

Александр Кутузов alleteam at gmail.com
Wed Jun 4 18:36:24 MSD 2008


может быть прав на файл не хватает?

4 июня 2008 г. 18:15 пользователь Alex Vorona <voron at amhost.net> написал:
> Igor Sysoev пишет:
>> On Fri, Mar 21, 2008 at 09:29:56AM +0200, Alex Vorona wrote:
>>
>>> Igor Sysoev пишет:
>>>> On Fri, Mar 21, 2008 at 12:29:28AM +0200, Alex Vorona wrote:
>>>>
>>>>
>>>>> Запускаю nginx
>>>>>
>>>>> [root at host ]# nginx
>>>>> [root at host ]#
>>>>> Нормально запускается и работает.
>>>>>
>>>>> Хочу сделать обновление бинарника
>>>>> [root at host ~]# kill -USR2 `cat /var/run/nginx.pid`
>>>>> [root at host ~]# tail -n6 /var/log/nginx/error.log
>>>>> 2008/03/20 17:09:15 [notice] 61177#0: signal 31 (SIGUSR2) received,
>>>>> changing binary
>>>>> 2008/03/20 17:09:15 [notice] 61177#0: changing binary
>>>>> 2008/03/20 17:09:15 [notice] 61177#0: start new binary process 51009
>>>>> 2008/03/20 17:09:15 [alert] 51009#0: execve() failed while executing new
>>>>> binary process "nginx" (2: No such file or directory)
>>>>> 2008/03/20 17:09:15 [notice] 61177#0: signal 20 (SIGCHLD) received
>>>>> 2008/03/20 17:09:15 [notice] 61177#0: new binary process 51009 exited with
>>>>> code 1
>>>>>
>>>> Нужно вручную запускать с полным путём.
>>>>
>>>>
>>> [root at host ~]# `which nginx`
>>>
>>> остановлюсь на таком варианте
>>
>> Второй вариант, когда nginx есть в PATH - в nginx.conf:
>>
>> env  PATH;
>>
>>
> через env не работает - та же ошибка
> 6.2-RELEASE, 0.6.31
>
> execve не смотрит же в PATH
>
>


More information about the nginx-ru mailing list