4 # %apachectrl ALL=(root) /usr/sbin/restart-apache
14 echo "Usage: $0 [restart|reload]"
18 if [ -x /usr/sbin/apache2ctl ]; then
20 /usr/sbin/apache2ctl configtest
22 if [ "$?" != "0" ]; then
23 env -i /etc/init.d/apache2 $action
25 echo "configtest returned errors, thus not restarting apache"
29 echo "Ehhh, there is no Apache2 on this machine"