#!/bin/bash

if [ `whoami` != "root" ]; then
    echo "Archiver proxy monitor must be run as root!"
    exit 1
fi

date && /sbin/service httpd status 
if [ "$?" -eq 3 ]; then
    # httpd is stopped, restart
    echo "Attempting to restart httpd on `hostname`..."
    /sbin/service httpd start
fi
