Skip to content
Snippets Groups Projects
Commit 8d7dc52f authored by Darren's avatar Darren
Browse files

Revert "Systemd-docker client detaches if -d option is given by user"

parent 136a9ce0
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,6 @@ type Context struct {
Pid int
PidFile string
Client *dockerClient.Client
Detach bool
}
func setupEnvironment(c *Context) {
......@@ -83,7 +82,6 @@ func parseContext(args []string) (*Context, error) {
flags.BoolVar(&c.Notify, []string{"n", "-notify"}, false, "setup systemd notify for container")
flags.BoolVar(&c.Env, []string{"e", "-env"}, false, "inherit environment variable")
flags.Var(&flCgroups, []string{"c", "-cgroups"}, "cgroups to take ownership of or 'all' for all cgroups available")
flags.BoolVar(&c.Detach, []string{"d", "-detach"}, false, "detach from container")
err := flags.Parse(args)
if err != nil {
......@@ -552,7 +550,6 @@ func mainWithArgs(args []string) (*Context, error) {
return c, err
}
if !c.Detach {
go pipeLogs(c)
err = keepAlive(c)
......@@ -564,7 +561,6 @@ func mainWithArgs(args []string) (*Context, error) {
if err != nil {
return c, err
}
}
return c, nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment