nginx stop is not working and nginx is creating new process after killing processes
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
nginx version: nginx/1.8.0
I am trying to stop nginx with the following command /etc/init.d/nginx stop
, however it is not returning any successful message. Then I tried to view the nginx processes with this command [![pidof nginx][1]][1]
and it returns following pids 58058 58057
.
My first query is why nginx is not stopping?
Another thing which I tried is to kill the processes, so as above mentioned PIDs I tried to remove them by following command kill 58058
& kill 58057
, the processes are kill but amazingly new processes created automatically. When I again checked the with the command pidof nginx
, this time it returns 2 more new processes 58763 58762
.
My Second query is how these processes are automatically being created?
I know following query is off topic, however I also want to make changes to the configuration file under sites-available. Is there any way the config file changes will be implemented without restarting nginx server? (For this reason I am restarting my nginx) as we generally do with nginx.conf file with this command service nginx reload
or /etc/init.d/nginx reload
.
My configurations files with pastebin link are as following
- /etc/init/nginx.conf
- /etc/init.d/nginx
- /etc/nginx/nginx.conf
- php5/fpm/pool.d/www.conf
root@BS-Web-02:/var/run# cat nginx.pid
58762
root@BS-Web-02:/var/run# pidof nginx
58763 58762
root@BS-Web-02:/var/run# kill 58762
root@BS-Web-02:/var/run# pidof nginx
3809 3808
root@BS-Web-02:/var/run# cat nginx.pid
3808
Tried Following Solutions but didn't work
- Why doesn't stopping the nginx server kill the processes associated with it?
- Not able to stop nginx server
P.S I am using Varnish on Port 80 and nginx on 8080
networking process services nginx
add a comment |Â
up vote
0
down vote
favorite
nginx version: nginx/1.8.0
I am trying to stop nginx with the following command /etc/init.d/nginx stop
, however it is not returning any successful message. Then I tried to view the nginx processes with this command [![pidof nginx][1]][1]
and it returns following pids 58058 58057
.
My first query is why nginx is not stopping?
Another thing which I tried is to kill the processes, so as above mentioned PIDs I tried to remove them by following command kill 58058
& kill 58057
, the processes are kill but amazingly new processes created automatically. When I again checked the with the command pidof nginx
, this time it returns 2 more new processes 58763 58762
.
My Second query is how these processes are automatically being created?
I know following query is off topic, however I also want to make changes to the configuration file under sites-available. Is there any way the config file changes will be implemented without restarting nginx server? (For this reason I am restarting my nginx) as we generally do with nginx.conf file with this command service nginx reload
or /etc/init.d/nginx reload
.
My configurations files with pastebin link are as following
- /etc/init/nginx.conf
- /etc/init.d/nginx
- /etc/nginx/nginx.conf
- php5/fpm/pool.d/www.conf
root@BS-Web-02:/var/run# cat nginx.pid
58762
root@BS-Web-02:/var/run# pidof nginx
58763 58762
root@BS-Web-02:/var/run# kill 58762
root@BS-Web-02:/var/run# pidof nginx
3809 3808
root@BS-Web-02:/var/run# cat nginx.pid
3808
Tried Following Solutions but didn't work
- Why doesn't stopping the nginx server kill the processes associated with it?
- Not able to stop nginx server
P.S I am using Varnish on Port 80 and nginx on 8080
networking process services nginx
File/var/run/nginx.pid
is exist? Which PID it contains?
â strangeman
Sep 9 '15 at 6:17
@strangeman I have added the screenshot of the PIDs
â Sukhjinder Singh
Sep 9 '15 at 7:36
@SukhjinderSingh prefer to Paste terminal contents rather than adding screenshot.
â Tejas
Sep 9 '15 at 8:05
1
@Tejas added as per your request.
â Sukhjinder Singh
Sep 9 '15 at 10:34
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
nginx version: nginx/1.8.0
I am trying to stop nginx with the following command /etc/init.d/nginx stop
, however it is not returning any successful message. Then I tried to view the nginx processes with this command [![pidof nginx][1]][1]
and it returns following pids 58058 58057
.
My first query is why nginx is not stopping?
Another thing which I tried is to kill the processes, so as above mentioned PIDs I tried to remove them by following command kill 58058
& kill 58057
, the processes are kill but amazingly new processes created automatically. When I again checked the with the command pidof nginx
, this time it returns 2 more new processes 58763 58762
.
My Second query is how these processes are automatically being created?
I know following query is off topic, however I also want to make changes to the configuration file under sites-available. Is there any way the config file changes will be implemented without restarting nginx server? (For this reason I am restarting my nginx) as we generally do with nginx.conf file with this command service nginx reload
or /etc/init.d/nginx reload
.
My configurations files with pastebin link are as following
- /etc/init/nginx.conf
- /etc/init.d/nginx
- /etc/nginx/nginx.conf
- php5/fpm/pool.d/www.conf
root@BS-Web-02:/var/run# cat nginx.pid
58762
root@BS-Web-02:/var/run# pidof nginx
58763 58762
root@BS-Web-02:/var/run# kill 58762
root@BS-Web-02:/var/run# pidof nginx
3809 3808
root@BS-Web-02:/var/run# cat nginx.pid
3808
Tried Following Solutions but didn't work
- Why doesn't stopping the nginx server kill the processes associated with it?
- Not able to stop nginx server
P.S I am using Varnish on Port 80 and nginx on 8080
networking process services nginx
nginx version: nginx/1.8.0
I am trying to stop nginx with the following command /etc/init.d/nginx stop
, however it is not returning any successful message. Then I tried to view the nginx processes with this command [![pidof nginx][1]][1]
and it returns following pids 58058 58057
.
My first query is why nginx is not stopping?
Another thing which I tried is to kill the processes, so as above mentioned PIDs I tried to remove them by following command kill 58058
& kill 58057
, the processes are kill but amazingly new processes created automatically. When I again checked the with the command pidof nginx
, this time it returns 2 more new processes 58763 58762
.
My Second query is how these processes are automatically being created?
I know following query is off topic, however I also want to make changes to the configuration file under sites-available. Is there any way the config file changes will be implemented without restarting nginx server? (For this reason I am restarting my nginx) as we generally do with nginx.conf file with this command service nginx reload
or /etc/init.d/nginx reload
.
My configurations files with pastebin link are as following
- /etc/init/nginx.conf
- /etc/init.d/nginx
- /etc/nginx/nginx.conf
- php5/fpm/pool.d/www.conf
root@BS-Web-02:/var/run# cat nginx.pid
58762
root@BS-Web-02:/var/run# pidof nginx
58763 58762
root@BS-Web-02:/var/run# kill 58762
root@BS-Web-02:/var/run# pidof nginx
3809 3808
root@BS-Web-02:/var/run# cat nginx.pid
3808
Tried Following Solutions but didn't work
- Why doesn't stopping the nginx server kill the processes associated with it?
- Not able to stop nginx server
P.S I am using Varnish on Port 80 and nginx on 8080
networking process services nginx
networking process services nginx
edited Apr 13 '17 at 12:36
Communityâ¦
1
1
asked Sep 9 '15 at 5:36
Sukhjinder Singh
1012
1012
File/var/run/nginx.pid
is exist? Which PID it contains?
â strangeman
Sep 9 '15 at 6:17
@strangeman I have added the screenshot of the PIDs
â Sukhjinder Singh
Sep 9 '15 at 7:36
@SukhjinderSingh prefer to Paste terminal contents rather than adding screenshot.
â Tejas
Sep 9 '15 at 8:05
1
@Tejas added as per your request.
â Sukhjinder Singh
Sep 9 '15 at 10:34
add a comment |Â
File/var/run/nginx.pid
is exist? Which PID it contains?
â strangeman
Sep 9 '15 at 6:17
@strangeman I have added the screenshot of the PIDs
â Sukhjinder Singh
Sep 9 '15 at 7:36
@SukhjinderSingh prefer to Paste terminal contents rather than adding screenshot.
â Tejas
Sep 9 '15 at 8:05
1
@Tejas added as per your request.
â Sukhjinder Singh
Sep 9 '15 at 10:34
File
/var/run/nginx.pid
is exist? Which PID it contains?â strangeman
Sep 9 '15 at 6:17
File
/var/run/nginx.pid
is exist? Which PID it contains?â strangeman
Sep 9 '15 at 6:17
@strangeman I have added the screenshot of the PIDs
â Sukhjinder Singh
Sep 9 '15 at 7:36
@strangeman I have added the screenshot of the PIDs
â Sukhjinder Singh
Sep 9 '15 at 7:36
@SukhjinderSingh prefer to Paste terminal contents rather than adding screenshot.
â Tejas
Sep 9 '15 at 8:05
@SukhjinderSingh prefer to Paste terminal contents rather than adding screenshot.
â Tejas
Sep 9 '15 at 8:05
1
1
@Tejas added as per your request.
â Sukhjinder Singh
Sep 9 '15 at 10:34
@Tejas added as per your request.
â Sukhjinder Singh
Sep 9 '15 at 10:34
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Check monit service for nginx configuration in /etc/monit.d/
.
If it doesn't work, please post your data from /var/log/messages
.
How this will tell me why my nginx not stopping and why it is creating new processes every time I kill them?
â Sukhjinder Singh
Sep 9 '15 at 10:35
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one. wiki.gentoo.org/wiki/â¦
â XakRu
Sep 9 '15 at 10:47
if you have monit, configured for nginx - at time when you will stop nginx, monit will start nginx automaticaly.
â XakRu
Sep 9 '15 at 10:48
Pls, show your /var/log/messages file
â XakRu
Sep 9 '15 at 10:49
Can please provide any link how to setup monit on Ubuntu 14. Unfortunately the logs are empty this was the reason I need to restart the server after adding access_log on.
â Sukhjinder Singh
Sep 9 '15 at 15:54
 |Â
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Check monit service for nginx configuration in /etc/monit.d/
.
If it doesn't work, please post your data from /var/log/messages
.
How this will tell me why my nginx not stopping and why it is creating new processes every time I kill them?
â Sukhjinder Singh
Sep 9 '15 at 10:35
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one. wiki.gentoo.org/wiki/â¦
â XakRu
Sep 9 '15 at 10:47
if you have monit, configured for nginx - at time when you will stop nginx, monit will start nginx automaticaly.
â XakRu
Sep 9 '15 at 10:48
Pls, show your /var/log/messages file
â XakRu
Sep 9 '15 at 10:49
Can please provide any link how to setup monit on Ubuntu 14. Unfortunately the logs are empty this was the reason I need to restart the server after adding access_log on.
â Sukhjinder Singh
Sep 9 '15 at 15:54
 |Â
show 1 more comment
up vote
0
down vote
Check monit service for nginx configuration in /etc/monit.d/
.
If it doesn't work, please post your data from /var/log/messages
.
How this will tell me why my nginx not stopping and why it is creating new processes every time I kill them?
â Sukhjinder Singh
Sep 9 '15 at 10:35
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one. wiki.gentoo.org/wiki/â¦
â XakRu
Sep 9 '15 at 10:47
if you have monit, configured for nginx - at time when you will stop nginx, monit will start nginx automaticaly.
â XakRu
Sep 9 '15 at 10:48
Pls, show your /var/log/messages file
â XakRu
Sep 9 '15 at 10:49
Can please provide any link how to setup monit on Ubuntu 14. Unfortunately the logs are empty this was the reason I need to restart the server after adding access_log on.
â Sukhjinder Singh
Sep 9 '15 at 15:54
 |Â
show 1 more comment
up vote
0
down vote
up vote
0
down vote
Check monit service for nginx configuration in /etc/monit.d/
.
If it doesn't work, please post your data from /var/log/messages
.
Check monit service for nginx configuration in /etc/monit.d/
.
If it doesn't work, please post your data from /var/log/messages
.
edited Sep 9 '15 at 11:11
G-Man
11.8k92658
11.8k92658
answered Sep 9 '15 at 8:24
XakRu
272
272
How this will tell me why my nginx not stopping and why it is creating new processes every time I kill them?
â Sukhjinder Singh
Sep 9 '15 at 10:35
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one. wiki.gentoo.org/wiki/â¦
â XakRu
Sep 9 '15 at 10:47
if you have monit, configured for nginx - at time when you will stop nginx, monit will start nginx automaticaly.
â XakRu
Sep 9 '15 at 10:48
Pls, show your /var/log/messages file
â XakRu
Sep 9 '15 at 10:49
Can please provide any link how to setup monit on Ubuntu 14. Unfortunately the logs are empty this was the reason I need to restart the server after adding access_log on.
â Sukhjinder Singh
Sep 9 '15 at 15:54
 |Â
show 1 more comment
How this will tell me why my nginx not stopping and why it is creating new processes every time I kill them?
â Sukhjinder Singh
Sep 9 '15 at 10:35
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one. wiki.gentoo.org/wiki/â¦
â XakRu
Sep 9 '15 at 10:47
if you have monit, configured for nginx - at time when you will stop nginx, monit will start nginx automaticaly.
â XakRu
Sep 9 '15 at 10:48
Pls, show your /var/log/messages file
â XakRu
Sep 9 '15 at 10:49
Can please provide any link how to setup monit on Ubuntu 14. Unfortunately the logs are empty this was the reason I need to restart the server after adding access_log on.
â Sukhjinder Singh
Sep 9 '15 at 15:54
How this will tell me why my nginx not stopping and why it is creating new processes every time I kill them?
â Sukhjinder Singh
Sep 9 '15 at 10:35
How this will tell me why my nginx not stopping and why it is creating new processes every time I kill them?
â Sukhjinder Singh
Sep 9 '15 at 10:35
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one. wiki.gentoo.org/wiki/â¦
â XakRu
Sep 9 '15 at 10:47
The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one. wiki.gentoo.org/wiki/â¦
â XakRu
Sep 9 '15 at 10:47
if you have monit, configured for nginx - at time when you will stop nginx, monit will start nginx automaticaly.
â XakRu
Sep 9 '15 at 10:48
if you have monit, configured for nginx - at time when you will stop nginx, monit will start nginx automaticaly.
â XakRu
Sep 9 '15 at 10:48
Pls, show your /var/log/messages file
â XakRu
Sep 9 '15 at 10:49
Pls, show your /var/log/messages file
â XakRu
Sep 9 '15 at 10:49
Can please provide any link how to setup monit on Ubuntu 14. Unfortunately the logs are empty this was the reason I need to restart the server after adding access_log on.
â Sukhjinder Singh
Sep 9 '15 at 15:54
Can please provide any link how to setup monit on Ubuntu 14. Unfortunately the logs are empty this was the reason I need to restart the server after adding access_log on.
â Sukhjinder Singh
Sep 9 '15 at 15:54
 |Â
show 1 more comment
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f228471%2fnginx-stop-is-not-working-and-nginx-is-creating-new-process-after-killing-proces%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
File
/var/run/nginx.pid
is exist? Which PID it contains?â strangeman
Sep 9 '15 at 6:17
@strangeman I have added the screenshot of the PIDs
â Sukhjinder Singh
Sep 9 '15 at 7:36
@SukhjinderSingh prefer to Paste terminal contents rather than adding screenshot.
â Tejas
Sep 9 '15 at 8:05
1
@Tejas added as per your request.
â Sukhjinder Singh
Sep 9 '15 at 10:34