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.0.0-rc.1+incompatible
Published
Feb 6, 2025
Platform
js/wasm
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.