command

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const VClusterManaged = "_VCLUSTER_MANAGED=yes"

Variables

This section is empty.

Functions

func MaybeKillPidFile

func MaybeKillPidFile(binPath, component string) (string, error)

maybeKillPidFile checks kills the process in the pidFile if it's has the same binary as the supervisor's and also checks that the env `_KOS_MANAGED=yes`. This function does not delete the old pidFile as this is done by the caller.

func MergeArgs

func MergeArgs(baseArgs []string, extraArgs []string) []string

func RunCommand

func RunCommand(ctx context.Context, command []string, component string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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