From 70127d1200afb6903dac64b4ac3ebf51712bbb3d Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 1 Nov 2008 13:58:09 +0000 Subject: enabled apache for openbsd --- files/openbsd/bin/restart_apache.sh | 6 ++++++ files/openbsd/bin/restart_apache_ssl.sh | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 files/openbsd/bin/restart_apache.sh create mode 100644 files/openbsd/bin/restart_apache_ssl.sh (limited to 'files') 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 ) -- cgit v1.2.3