diff options
author | mh <mh@immerda.ch> | 2008-11-01 13:58:09 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-11-01 13:58:09 +0000 |
commit | 70127d1200afb6903dac64b4ac3ebf51712bbb3d (patch) | |
tree | 578c00ca126ed21d3e7c2c08106665d01d4d8d68 /files | |
parent | 7a0ddd2fd2b3c4f32bbe418818f4e6ad948d2b95 (diff) |
enabled apache for openbsd
Diffstat (limited to 'files')
-rw-r--r-- | files/openbsd/bin/restart_apache.sh | 6 | ||||
-rw-r--r-- | files/openbsd/bin/restart_apache_ssl.sh | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/files/openbsd/bin/restart_apache.sh b/files/openbsd/bin/restart_apache.sh new file mode 100644 index 0000000..e12bd29 --- /dev/null +++ b/files/openbsd/bin/restart_apache.sh @@ -0,0 +1,6 @@ +#!/usr/local/bin/bash + +ignoreout='Processing config' +apachectl restart 2>&1 | (egrep -v -e "_default_ VirtualHost overlap on port 443" -e "$ignoreout" -e "/usr/sbin/apachectl restart: httpd restarted" || true ) +sleep 10 +apachectl start 2>&1 | (egrep -v -e "_default_ VirtualHost overlap on port 443" -e "$ignoreout" -e "/usr/sbin/apachectl startssl: httpd started" || true ) diff --git a/files/openbsd/bin/restart_apache_ssl.sh b/files/openbsd/bin/restart_apache_ssl.sh new file mode 100644 index 0000000..a54f28f --- /dev/null +++ b/files/openbsd/bin/restart_apache_ssl.sh @@ -0,0 +1,6 @@ +#!/usr/local/bin/bash + +ignoreout='Processing config' +apachectl restart 2>&1 | (egrep -v -e "_default_ VirtualHost overlap on port 443" -e "$ignoreout" -e "/usr/sbin/apachectl restart: httpd restarted" || true ) +sleep 10 +apachectl startssl 2>&1 | (egrep -v -e "_default_ VirtualHost overlap on port 443" -e "$ignoreout" -e "/usr/sbin/apachectl startssl: httpd started" || true ) |