corz.org text viewer..
[currently viewing: /public/linux/usr/local/bin/rh.sh - raw]
#!/bin/bash
#
# corz.org 2000->
#
# this is a handy script to put in PATH, usually /usr/local/bin
# see "ra" for more details
#
# APACHE HALT!

echo " "
echo "Stopping apache.."
echo " "
if [ -e /Library/Apache2/bin/apachectl ];then
    echo " "
    sudo /Library/Apache2/bin/apachectl stop
    exit 0
fi
if [ -e /usr/local/apache2/bin/apachectl ];then
    echo " "
    sudo /usr/local/apache2/bin/apachectl stop
    exit 0
fi
if [ -e /opt/Apache2/bin/apachectl ];then
    echo " "
    sudo /opt/Apache2/bin/apachectl stop
exit 0
fi
if [ -e /usr/sbin/apache2ctl ];then
    echo " "
    sudo /usr/sbin/apache2ctl stop
exit 0
fi
if [ -e /usr/sbin/apachectl ];then
    echo " "
    sudo /usr/sbin/apachectl stop
exit 0
fi

echo " "
sudo /usr/local/apache/bin/apachectl stop

Welcome to corz.org!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!