service

package
v0.0.0-...-73aeb86 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemdSearchPaths = []string{

	"/etc/systemd/system.control/",
	"/run/systemd/system.control/",
	"/run/systemd/transient/",
	"/run/systemd/generator.early/",
	"/etc/systemd/system/",
	"/etc/systemd/system.attached/",
	"/run/systemd/system/",
	"/run/systemd/system.attached/",
	"/run/systemd/generator/",
	"/usr/lib/systemd/system/",
	"/run/systemd/generator.late/",
}

SystemdSearchPaths are the base directories to search in for service files.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	HasService(service string) (bool, error)
}

func GetChecker

func GetChecker() Checker

type LinuxChecker

type LinuxChecker struct {
}

func (*LinuxChecker) HasService

func (lc *LinuxChecker) HasService(service string) (bool, error)

Jump to

Keyboard shortcuts

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