Is there a way to write a bash script to kill all instances of the httpd daemon that are orphaned. Normally I use /usr/local/apache2/bin/apachectl to stop and restart apache. It cleans up all of the http processes. Yesterday I had to manually kill them doing kill -9 pid
used: ps -ef | grep httpd to see the process [ February 19, 2004: Message edited by: Pranav Butala ]
Figured out hoe to kill em: #!/bin/bash for pid in `ps -C httpd|sed -e 's/^\ \+//g' | grep httpd|awk '{print $1}'` do kill $pid done
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards