Fix handling of kill in daemon
This commit is contained in:
parent
8795e7d739
commit
3de40ddf98
|
@ -163,7 +163,7 @@ func (d *DockerEnvironment) Terminate(signal os.Signal) error {
|
|||
}
|
||||
|
||||
d.Server.Emit(StatusEvent, ProcessStoppingState)
|
||||
return d.Client.ContainerKill(ctx, d.Server.Uuid, signal.String())
|
||||
return d.Client.ContainerKill(ctx, d.Server.Uuid, "SIGKILL")
|
||||
}
|
||||
|
||||
// Attaches to the docker container itself and ensures that we can pipe data in and out
|
||||
|
|
|
@ -131,6 +131,8 @@ func (wsh *WebsocketHandler) HandleInbound(m WebsocketMessage) error {
|
|||
err = wsh.Server.Environment.Stop()
|
||||
break
|
||||
case "restart":
|
||||
break
|
||||
case "kill":
|
||||
err = wsh.Server.Environment.Terminate(os.Kill)
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user