package reexec

import "github.com/dotcloud/docker/pkg/reexec"

Package reexec facilitates the busybox style reexec of a binary.

Deprecated: this package is deprecated and moved to a separate module. Use github.com/moby/sys/reexec instead.

Index

Functions

func Command

func Command(args ...string) *exec.Cmd

Command returns an *exec.Cmd with its Path set to the path of the current binary using the result of Self.

Deprecated: use reexec.Command instead.

func Init

func Init() bool

Init is called as the first part of the exec process and returns true if an initialization function was called.

Deprecated: use reexec.Init instead.

func Register

func Register(name string, initializer func())

Register adds an initialization func under the specified name. It panics if the given name is already registered.

Deprecated: use reexec.Register instead.

func Self

func Self() string

Self returns the path to the current process's binary.

Deprecated: use reexec.Self instead.

Source Files

reexec_deprecated.go

Version
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
2 minutes ago

Tools for package owners.