On Wed, Mar 11, 2009 at 06:01:31PM +0100, Matt wrote:
>> If nginx is running as 'www' then you're building your own nginx rather
>> than using the package? If so, then nginx is starting however you tell
>> it, and without details it's impossible to say.
>>
>
> It's installed through package and I use a startup as adviced in
> /etc/rc.local.
> However the 'user' in the nginx.conf is set to 'www'.

Ah, ok.

> Thanks for the pointers - I will add a daemon class to login.conf.

There's already a daemon class in the stock login.conf. You can play
with that or copy it to a new one for www, nginx, or whatever you like.
Then change your rc.local to use su -c <class>.

> Like with the MySQL examples [1] should I restart nginx through a
> shellscript as well ?
> (Per documentation it is adviced to restart nginx with 'kill -HUP pid')

'kill -HUP pid' will not work for this. You kill need to 'kill pid' to
terminate it completely, then start it fresh. Otherwise the new login
class will not be applied. If you do that with a script or by hand is up
to you.

--
Darrin Chandler            |  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/      |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG
Federation

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to