#!/bin/sh
# 
# Author: Peter Keel <killer@discordia.ch>
# HUP apache and do a "ps" to check if it still lives.
#
if [ -f /var/run/apache.pid ]
    then
    kill -HUP `cat /var/run/apache.pid`
    ps aux | grep apache | grep -v hupwww | grep -v grep 
else
    echo "no apache running";
fi
