systemd

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RestartService

func RestartService(unit string, isUser bool) (string, error)

func ServiceIsActive

func ServiceIsActive(unit string, isUser bool) (bool, error)

func ServiceIsActiveOrEnabled

func ServiceIsActiveOrEnabled(unit string, isUser bool) bool

func ServiceIsEnabled

func ServiceIsEnabled(unit string, isUser bool) (bool, error)

func StartService

func StartService(unit string, isUser bool) (string, error)

func StopService

func StopService(unit string, isUser bool) (string, error)

func UnitExists

func UnitExists(unitName string, isUser bool) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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