HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Proper handling of Apache log file deletion while Apache might have that file open
[hcoop/domtool2.git]
/
scripts
/
domtool-publish
diff --git
a/scripts/domtool-publish
b/scripts/domtool-publish
index
60f3f27
..
fad7e85
100755
(executable)
--- a/
scripts/domtool-publish
+++ b/
scripts/domtool-publish
@@
-5,6
+5,13
@@
case $1 in
/usr/bin/rsync -r --delete /var/domtool/vhosts/ /etc/apache2/vhosts/
/etc/init.d/apache2 reload
;;
/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/
bind)
/usr/bin/rsync -r --delete /var/domtool/zones/ /etc/bind/zones/
/bin/cp /var/domtool/named.conf.local /etc/bind/