diff --git a/Makefile b/Makefile index 0db27839..4061f8b3 100644 --- a/Makefile +++ b/Makefile @@ -337,6 +337,9 @@ const project = "$(PROJECT_NAME)" // prefix used to denote non-standard CLI commands and options. const projectPrefix = "$(PROJECT_TYPE)" +// systemdUnitName is the systemd(1) target used to launch the agent. +const systemdUnitName = "$(PROJECT_TAG).target" + // commit is the git commit the runtime is compiled from. var commit = "$(COMMIT)" diff --git a/create.go b/create.go index e1596443..61b552fe 100644 --- a/create.go +++ b/create.go @@ -160,7 +160,7 @@ func getKernelParams(containerID string) []vc.Param { }, { Key: "systemd.unit", - Value: "clear-containers.target", + Value: systemdUnitName, }, { Key: "systemd.mask",