Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I cannot kill the following process:

 0.0  1620 17462 /home/mertnuhoglu/webapps/django/apache2/bin/httpd -k start

I give kill command but httpd instance still runs:

[mertnuhoglu@web145 dj02]$ kill -9 17462
[mertnuhoglu@web145 dj02]$ ps -u mertnuhoglu -o pcpu,rss,pid,command

 0.0  3532 18479 /home/mertnuhoglu/webapps/django/apache2/bin/httpd -k start

The process id changes but the httpd instance still runs. How can I kill that httpd instance definitely?

share|improve this question
add comment

1 Answer

The parameter -k start tells httpd to restart itself if it gets killed. You have to stop the process.

/home/mertnuhoglu/webapps/django/apache2/bin/httpd -k stop

Or, if started with apachectl:

/home/mertnuhoglu/webapps/django/apache2/bin/apachectl stop
share|improve this answer
    
Thanks for the help. I gave that command: "httpd -k stop" The server said: "httpd (pid 17462?) not running" and didn't stop httpd. pid 17462 was the original httpd process id above. I had killed that pid with "kill -9 17462". Is there any way to kill completely the process still? –  Mert Nuhoglu Dec 18 '10 at 10:30
    
It depends on how you've started your webserver, Try the apachectl stop command, i've appended it to the answer. –  wag Dec 18 '10 at 11:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.