Welcome! Log In Create A New Profile

Advanced

Restart Nginx than root user?

January 24, 2016 06:27PM
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
Subject Author Posted

Restart Nginx than root user?

smsmaddy1981 January 24, 2016 06:27PM

Re: Restart Nginx than root user?

GreenGecko January 24, 2016 08:42PM

Re: Restart Nginx than root user?

smsmaddy1981 February 03, 2016 05:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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