mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:42:02 +02:00
Restart web servers before beginning tests
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ class Proxy(configurators_common.Proxy):
|
||||
self._prepare_configurator()
|
||||
|
||||
try:
|
||||
subprocess.check_call("apachectl -k start".split())
|
||||
subprocess.check_call("apachectl -k restart".split())
|
||||
except errors.Error:
|
||||
raise errors.Error(
|
||||
"Apache failed to load {0} before tests started".format(
|
||||
|
||||
@@ -62,7 +62,7 @@ class Proxy(configurators_common.Proxy):
|
||||
self._prepare_configurator()
|
||||
|
||||
try:
|
||||
subprocess.check_call("nginx".split())
|
||||
subprocess.check_call("service nginx reload".split())
|
||||
except errors.Error:
|
||||
raise errors.Error(
|
||||
"Nginx failed to load {0} before tests started".format(
|
||||
|
||||
Reference in New Issue
Block a user