Proper handling of Apache log file deletion while Apache might have that file open
[hcoop/domtool2.git] / scripts / domtool-publish
index 60f3f27..fad7e85 100755 (executable)
@@ -5,6 +5,13 @@ case $1 in
                /usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
                /etc/init.d/apache2 reload
        ;;
+       apache-down)
+               /etc/init.d/apache2 stop
+       ;;
+       apache-undown)
+               /usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
+               /etc/init.d/apache2 start
+       ;;
        bind)
                /usr/bin/rsync -r --delete /var/domtool/zones/ /etc/bind/zones/
                /bin/cp /var/domtool/named.conf.local /etc/bind/