serviceutils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() string

Types

type Service

type Service struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Require     string `json:"require"` // unuse now
	Type        string `json:"type"`    // unuse now
	ExecStart   string `json:"execstart"`
	ExecStop    string `json:"execstop"` // unuse now
	WantedBy    string `json:"watedby"`  // unuse now
}

func (Service) Enable

func (s Service) Enable() error

func (Service) Log

func (s Service) Log() string

func (Service) Reg

func (s Service) Reg() error

func (Service) Start

func (s Service) Start() error

func (Service) Status

func (s Service) Status() string

Jump to

Keyboard shortcuts

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