corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
corz.org text viewer..
[currently viewing: / public/ linux/ usr/ local/ bin/ ra.sh - raw]
echo
echo `date "+%m.%d.%y-%H.%M"`": restarting apache.."
echo
if [ -e /usr/local/apache2/bin/apachectl ];then
echo " "
sudo /usr/local/apache2/bin/apachectl graceful
exit 0
fi
if [ -e /Library/Apache2/bin/apachectl ];then
echo " "
sudo /Library/Apache2/bin/apachectl graceful
exit 0
fi
if [ -e /opt/Apache2/bin/apachectl ];then
echo " "
sudo /opt/Apache2/bin/apachectl graceful
exit 0
fi
if [ -e /opt/lampp/bin/apachectl ];then
echo " "
sudo /opt/lampp/bin/apachectl graceful
exit 0
fi
if [ -e /usr/sbin/apachectl ];then
echo " "
sudo /usr/sbin/apachectl -k graceful
exit 0
fi
if [ -e /usr/sbin/apache2ctl ];then
echo " "
sudo /usr/sbin/apache2ctl -k graceful
exit 0
fi
echo " "
sudo /usr/local/apache/bin/apachectl graceful