systemd

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MovePauseProcessToScope

func MovePauseProcessToScope(pausePidPath string)

MovePauseProcessToScope moves the pause process used for rootless mode to keep the namespaces alive to a separate scope.

func MoveRootlessNetnsSlirpProcessToUserSlice

func MoveRootlessNetnsSlirpProcessToUserSlice(pid int) error

MoveRootlessNetnsSlirpProcessToUserSlice moves the slirp4netns process for the rootless netns into a different scope so that systemd does not kill it with a container.

func RunUnderSystemdScope

func RunUnderSystemdScope(pid int, slice string, unitName string) error

RunUnderSystemdScope adds the specified pid to a systemd scope

func RunsOnSystemd

func RunsOnSystemd() bool

RunsOnSystemd returns whether the system is using systemd

Types

This section is empty.

Jump to

Keyboard shortcuts

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