reexec

package
v27.5.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command deprecated

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 deprecated

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 deprecated

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 deprecated

func Self() string

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

Deprecated: use reexec.Self instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL