service

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Unit *unit.Unit

	Type                            string
	RemainAfterExit                 bool
	ExecMainStartTimestamp          time.Time
	ExecMainStartTimestampMonotonic int
	ExecMainExitTimestamp           time.Time
	ExecMainExitTimestampMonotonic  int
	ExecMainCode                    int
	ExecMainStatus                  int
	StatusText                      string
	Result                          string
}

Service struct providing some properties from dbus interface org.freedesktop.systemd1.Service

func New

func New(conn *dbus.Conn, unitName *string) (*Service, error)

New gets the dbus properties for unitName and returns a struct

Jump to

Keyboard shortcuts

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