summaryrefslogtreecommitdiff
path: root/files/scripts/OpenBSD/bin/restart_apache.sh
blob: 4dc936d3b81470af235729f91d1d2ee1be75b4e3 (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 start 2>&1 | (egrep -v -e "_default_ VirtualHost overlap on port 443" -e "$ignoreout" -e "/usr/sbin/apachectl startssl: httpd started" || true )