summaryrefslogtreecommitdiff
path: root/files/scripts/OpenBSD/bin/restart_apache_ssl.sh
blob: 314018b6d8328a0d02ed854b507eae88944036fb (plain)
1
2
3
4
5
6
#!/bin/sh

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 )