diff --git a/pkg/kubelet/rkt/rkt.go b/pkg/kubelet/rkt/rkt.go index faba83dfa0a..72a94d88e3c 100644 --- a/pkg/kubelet/rkt/rkt.go +++ b/pkg/kubelet/rkt/rkt.go @@ -1651,13 +1651,6 @@ func (r *Runtime) KillPod(pod *api.Pod, runningPod kubecontainer.Pod, gracePerio r.containerRefManager.ClearRef(c.ID) } - // Touch the systemd service file to update the mod time so it will - // not be garbage collected too soon. - if err := r.os.Chtimes(serviceFile, time.Now(), time.Now()); err != nil { - glog.Errorf("rkt: Failed to change the modification time of the service file %q: %v", serviceName, err) - return err - } - // Since all service file have 'KillMode=mixed', the processes in // the unit's cgroup will receive a SIGKILL if the normal stop timeouts. reschan := make(chan string)