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 dc5ab23 + 888502f commit 85ff1eeCopy full SHA for 85ff1ee
nginx.py
@@ -9,6 +9,11 @@ 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 killnginx():
14
+ """Shut down Nginx immediately without waiting for it to finish running"""
15
+ sudo('service nginx stop')
16
+
17
@task
18
def gracefulstart():
19
"""Start up Nginx on a machine"""
@@ -17,5 +22,5 @@ def gracefulstart():
22
23
def hello_it():
24
"""Turns Nginx off and on again"""
20
- gracefulstop()
25
+ killnginx()
21
26
gracefulstart()
0 commit comments