We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32f06f6 + c8070e8 commit e7f7f10Copy full SHA for e7f7f10
nginx.py
@@ -9,6 +9,12 @@ def gracefulstop(wait=True):
9
# Poll for Nginx, until it's no longer running.
10
run('while pgrep nginx >/dev/null; do echo "Waiting for Nginx to exit.."; sleep 1; done')
11
12
+@task
13
+def gracefulrestart():
14
+ """Gracefully shutdown and start Nginx (not reload)"""
15
+ gracefulstop()
16
+ start()
17
+
18
@task
19
def disable_vhost(vhost_filename):
20
"""Disable a vhost by removing its symlink from /etc/nginx/sites-enabled"""
0 commit comments