Add signal in the kill CLI commando to send a specific signal to the service

Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
This commit is contained in:
Raúl Cumplido 2014-11-03 22:46:01 +00:00 • committed by Raul Cumplido
commit 9abdd337b5
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):
"""