Welcome! Log In Create A New Profile

Advanced

Re: nginx init script for redhat (rhel5)

mike
March 17, 2009 04:16AM
i have updated the wiki.

On Tue, Mar 17, 2009 at 12:29 AM, Jeroen Steggink - CMS
<webmaster@cmsnl.com> wrote:
> Hello,
>
> I had the same problem. After adding 'sleep 1' it works.
>
> Jeroen
>
>> -----Original Message-----
>> From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On
>> Behalf Of mike
>> Sent: dinsdag 17 maart 2009 7:57
>> To: nginx@sysoev.ru
>> Subject: Re: nginx init script for redhat (rhel5)
>>
>> I changed this minorly
>>
>> restart() {
>>     configtest || return $?
>>     stop
>>     sleep 1
>>     start
>> }
>>
>> to include that sleep 1
>>
>> it seems sometimes "stop" doesn't clean things up fast enough perhaps.
>> since then i have had no issues
>>
>> [root@mia32217www002 build]#  service nginx restart
>> 2009/03/16 22:48:01 [info] 2934#0: the configuration file
>> /etc/nginx/nginx.conf syntax is ok
>> 2009/03/16 22:48:01 [info] 2934#0: the configuration file
>> /etc/nginx/nginx.conf was tested successfully Stopping nginx:
>> [  OK  ] Starting nginx: [  OK  ]
>> [root@mia32217www002 build]#  service nginx restart
>> 2009/03/16 22:48:03 [info] 2957#0: the configuration file
>> /etc/nginx/nginx.conf syntax is ok
>> 2009/03/16 22:48:03 [info] 2957#0: the configuration file
>> /etc/nginx/nginx.conf was tested successfully Stopping nginx:
>> [  OK  ] Starting nginx: [  OK  ]
>> [root@mia32217www002 build]#  service nginx restart
>> 2009/03/16 22:48:03 [info] 2980#0: the configuration file
>> /etc/nginx/nginx.conf syntax is ok
>> 2009/03/16 22:48:03 [info] 2980#0: the configuration file
>> /etc/nginx/nginx.conf was tested successfully Stopping nginx:
>> [  OK  ] Starting nginx:
>> [root@mia32217www002 build]#  service nginx restart
>> 2009/03/16 22:49:04 [info] 3052#0: the configuration file
>> /etc/nginx/nginx.conf syntax is ok
>> 2009/03/16 22:49:04 [info] 3052#0: the configuration file
>> /etc/nginx/nginx.conf was tested successfully Stopping nginx:
>> [FAILED] Starting nginx: [  OK  ]
>>
>> ^^ that fourth time it failed...
>>
>> sleep 1 so far seems to be foolproof. my provider probably
>> hates me ive been restarting it over and over.
>>
>>
>> On Mon, Mar 16, 2009 at 9:20 PM, Cliff Wells
>> <cliff@develix.com> wrote:
>> > On Mon, 2009-03-16 at 20:52 -0700, mike wrote:
>> >> On Mon, Mar 16, 2009 at 8:51 PM, mike <mike503@gmail.com> wrote:
>> >> > On Mon, Mar 16, 2009 at 8:44 PM, Cliff Wells
>> <cliff@develix.com> wrote:
>> >> >> Oops.  Ignore that.  Here's what I use:
>> >> >>
>> >> >> http://wiki.nginx.org/RedHatNginxInitScript
>> >> >
>> >> > Got that in plaintext? It wants to copy all the whitespace in my
>> >> > browser too :P
>> >>
>> >> n/m firefox to the rescue.
>> >
>> >
>> > If you click the link right above the script, it should offer to
>> > download it for you.
>> >
>> > Cliff
>> >
>> >
>> >
>>
>>
>
>
>
Subject Author Posted

nginx init script for redhat (rhel5)

mike March 16, 2009 11:27PM

Re: nginx init script for redhat (rhel5)

Chris Zimmerman March 16, 2009 11:35PM

Re: nginx init script for redhat (rhel5)

mike March 16, 2009 11:37PM

Re: nginx init script for redhat (rhel5)

Chris Zimmerman March 16, 2009 11:45PM

Re: nginx init script for redhat (rhel5)

Jim Ohlstein March 16, 2009 11:36PM

Re: nginx init script for redhat (rhel5)

mike March 16, 2009 11:42PM

Re: nginx init script for redhat (rhel5)

Cliff Wells March 16, 2009 11:56PM

Re: nginx init script for redhat (rhel5)

Cliff Wells March 17, 2009 12:02AM

Re: nginx init script for redhat (rhel5)

mike March 17, 2009 12:08AM

Re: nginx init script for redhat (rhel5)

mike March 17, 2009 12:09AM

Re: nginx init script for redhat (rhel5)

Cliff Wells March 17, 2009 12:40AM

Re: nginx init script for redhat (rhel5)

mike March 17, 2009 12:43AM

Re: nginx init script for redhat (rhel5)

Jean-Philippe Moal March 17, 2009 06:07AM

Re: nginx init script for redhat (rhel5)

mike March 17, 2009 01:45PM

Re: nginx init script for redhat (rhel5)

mike March 17, 2009 12:45AM

Re: nginx init script for redhat (rhel5)

mike March 17, 2009 03:26AM

RE: nginx init script for redhat (rhel5)

Jeroen Steggink - CMS March 17, 2009 03:57AM

Re: nginx init script for redhat (rhel5)

mike March 17, 2009 04:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready