Thanks to visit codestin.com Credit goes to github.com
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.
1 parent 1a6b909 commit 294de15Copy full SHA for 294de15
nginx.py
@@ -10,17 +10,17 @@ def gracefulstop(wait=True):
10
run('while pgrep nginx >/dev/null; do echo "Waiting for Nginx to exit.."; sleep 1; done')
11
12
@task
13
-def killnginx():
+def kill():
14
"""Shut down Nginx immediately without waiting for it to finish running"""
15
sudo('service nginx stop')
16
17
18
-def gracefulstart():
+def start():
19
"""Start up Nginx on a machine"""
20
sudo('service nginx start')
21
22
23
def hello_it():
24
"""Turns Nginx off and on again"""
25
- killnginx()
26
- gracefulstart()
+ kill()
+ start()
0 commit comments