Merge pull request #611 from raulcd/604_support_reloading_containers

Add signal in the kill CLI commando to send a specific signal to the service
This commit is contained in:
Daniel Nephin 2014-11-13 10:28:14 -05:00
commit 65ae22e79a
4 changed files with 48 additions and 5 deletions

View file

@ -133,9 +133,15 @@ class TopLevelCommand(Command):
"""
Force stop service containers.
Usage: kill [SERVICE...]
Usage: kill [options] [SERVICE...]
Options:
-s SIGNAL SIGNAL to send to the container.
Default signal is SIGKILL.
"""
project.kill(service_names=options['SERVICE'])
signal = options.get('-s', 'SIGKILL')
project.kill(service_names=options['SERVICE'], signal=signal)
def logs(self, project, options):
"""