Documentation
¶
Index ¶
- Variables
- func AutoStartedUnitName() string
- func CurrentUnitName() string
- func EnableDisableUnit(ctx context.Context, enable bool, instName string) error
- func GetUnitPath(instName string) string
- func IsRunningSystemd() bool
- func RequestStart(ctx context.Context, inst *limatype.Instance) error
- func RequestStop(ctx context.Context, inst *limatype.Instance) (bool, error)
- func UnitNameFrom(instName string) string
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 ¶
EnableDisableUnit enables or disables the systemd service for the given instance name.
func GetUnitPath ¶
GetUnitPath returns the path to the systemd unit file for the given instance name.
func IsRunningSystemd ¶
func IsRunningSystemd() bool
func UnitNameFrom ¶
UnitNameFrom returns the systemd service name for the given instance name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.