systemd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Green = "\033[32m"
View Source
const RESET = "\033[0m"

Variables

This section is empty.

Functions

func DaemonReload

func DaemonReload() error

func Start

func Start(serviceName string) error

func Stop

func Stop(serviceName string) error

Types

type UnitStatus

type UnitStatus struct {
	ActiveState string `ini:"ActiveState"`
	LoadState   string `ini:"LoadState"`
	SubState    string `ini:"SubState"`
	Description string `ini:"Description"`
}

func Status

func Status(serviceName string) (UnitStatus, error)

Jump to

Keyboard shortcuts

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