Skip to content

Commit f1b06d2

Browse files
committed
Merge pull request alphagov#13 from alphagov/rename_nginx_tasks
Rename to nginx.{kill,start}
2 parents 1a6b909 + 294de15 commit f1b06d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nginx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ def gracefulstop(wait=True):
1010
run('while pgrep nginx >/dev/null; do echo "Waiting for Nginx to exit.."; sleep 1; done')
1111

1212
@task
13-
def killnginx():
13+
def kill():
1414
"""Shut down Nginx immediately without waiting for it to finish running"""
1515
sudo('service nginx stop')
1616

1717
@task
18-
def gracefulstart():
18+
def start():
1919
"""Start up Nginx on a machine"""
2020
sudo('service nginx start')
2121

2222
@task
2323
def hello_it():
2424
"""Turns Nginx off and on again"""
25-
killnginx()
26-
gracefulstart()
25+
kill()
26+
start()

0 commit comments

Comments
 (0)