Hi Team,
root user is must for NGinx restart?
Everytime of restart, prompts for root user than other users. PID's are not
getting killed...for the running process with project users.

I tried solution of adding entry to Sudoers file with an path of executable
script. No luck. Following are the changes made

/ectc/sudoers
%gvp ALL=NOPASSWD: /var/gvp/Nginx/bin/restartNginx #To get rid of Nginx
restart with root user and to attain with gvp user

/var/gvp/Nginx/bin/restartNginx
#! /bin/bash
/bin/kill -HUP `cat /var/gvp/Nginx/nginx-1.8.0/logs/nginx.pid`

Please review, if above instructions are correct.

And, suggest how project users can be used to restart NGinx...to avoid
manual intervention and dependency of root user always.


Regards,
Maddy

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,264087,264087#msg-264087

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to