This commit is contained in:
Alan Garcia 2011-01-30 12:59:48 +00:00
parent 7c8332932a
commit 0e81e371ce
2 changed files with 5 additions and 5 deletions

View File

@ -56,10 +56,10 @@ if [ ! -z "$RELOAD_ZONES" ]; then
$sudo rndc reload "$zone" > /dev/null || echo "Cannot reload bind for zone $zone" >> "$DOMAIN_LOG_FILE"
done
fi
if [ -x /usr/sbin/apache ]; then
$sudo invoke-rc.d apache reload > /dev/null || echo "Cannot restart apache" >> "$DOMAIN_LOG_FILE"
if [ -x /usr/sbin/apachectl ]; then
$sudo /usr/sbin/apachectl graceful > /dev/null || echo "Cannot restart apache" >> "$DOMAIN_LOG_FILE"
fi
if [ -x /usr/sbin/apache2 ]; then
$sudo invoke-rc.d apache2 reload > /dev/null || echo "Cannot restart apache" >> "$DOMAIN_LOG_FILE"
if [ -x /usr/sbin/apache2ctl ]; then
$sudo /usr/sbin/apache2ctl graceful > /dev/null || echo "Cannot restart apache" >> "$DOMAIN_LOG_FILE"
fi
fi

View File

@ -108,7 +108,7 @@ fi
mv "$tempo" "$VHOST_FILE"
# Reload web and dns
alternc_reload all
/usr/bin/alternc_reload all
# TODO reload slaves