[NCLUG] Have I been cracked?

Sean Reifschneider jafo at tummy.com
Sun Oct 15 14:51:47 MDT 2006


On Fri, Oct 13, 2006 at 12:54:18PM -0600, Stephen Warren wrote:
>I guess I need to modify my back scripts to check that the various
>processes actually exited after the "service stop" (although they

Might do something like:

service httpd stop
sleep 1
fuser -n tcp 80 && killall httpd
sleep 1
fuser -n tcp 80 && killall -9 httpd

Note that fuser exits non-zero if nothing is binding to the port.

Sean
-- 
 Q. What's the difference between Batman and Bill Gates?
 A. When Batman fought the Penguin, he won.
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability




More information about the NCLUG mailing list