systemd

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Template string

Functions

func AutoStartedUnitName

func AutoStartedUnitName() string

AutoStartedUnitName returns the systemd service name if the instance is started by systemd.

func CurrentUnitName

func CurrentUnitName() string

func EnableDisableUnit

func EnableDisableUnit(ctx context.Context, enable bool, instName string) error

EnableDisableUnit enables or disables the systemd service for the given instance name.

func GetUnitPath

func GetUnitPath(instName string) string

GetUnitPath returns the path to the systemd unit file for the given instance name.

func IsRunningSystemd

func IsRunningSystemd() bool

func RequestStart

func RequestStart(ctx context.Context, inst *limatype.Instance) error

func RequestStop

func RequestStop(ctx context.Context, inst *limatype.Instance) (bool, error)

func UnitNameFrom

func UnitNameFrom(instName string) string

UnitNameFrom returns the systemd service name for the given instance name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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