diff --git a/src/alternc_reload b/src/alternc_reload index 20dec389..77eebbeb 100755 --- a/src/alternc_reload +++ b/src/alternc_reload @@ -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 diff --git a/src/update_domains.sh b/src/update_domains.sh index e9801988..b24f2cf0 100644 --- a/src/update_domains.sh +++ b/src/update_domains.sh @@ -108,7 +108,7 @@ fi mv "$tempo" "$VHOST_FILE" # Reload web and dns -alternc_reload all +/usr/bin/alternc_reload all # TODO reload slaves