Welcome! Log In Create A New Profile

Advanced

Re: Send USR1 to nginx as non root user

Ray
October 09, 2010 10:14AM
How did you try to run your logrotate scripts? If from cron.daily,
etc, it should already have root user rights. If from crontab, then
make sure you're using the root user's crontab.

Ray

On Sat, Oct 9, 2010 at 8:57 PM, Gerold Böhler <lists@ruby-forum.com> wrote:
> Hi,
>
> on my setup i have a root user and a deployer user. The nginx master
> process runs as root since i need to listen on port 80. The 2 worker
> processes run as deployer.
>
> So now i setup logrotate and would like to do a kill -USR1 `cat
> /opt/nginx/logs/nginx.pid` but unfortunately i get a "Operation not
> permitted" error, probably because nginx is running as root.
>
> Has anybody here a similar scenario? Any tips or suggestions?
>
> Thanks a lot,
>
> Gerold
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Send USR1 to nginx as non root user

Gerold Böhler October 09, 2010 09:00AM

Re: Send USR1 to nginx as non root user

Ray October 09, 2010 10:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
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